summary refs log tree commit diff stats
path: root/test/index.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/index.test.js')
-rw-r--r--test/index.test.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/index.test.js b/test/index.test.js
index 2e55b2c..ebac87d 100644
--- a/test/index.test.js
+++ b/test/index.test.js
@@ -1,12 +1,15 @@
 const test = require('ava')
+const path = require('path')
 const request = require('supertest')
 
+process.env.POST_DIR = path.resolve(__dirname, '../test/data/')
 const app = require('../src/index.js')
 
-test(t =>
-  request(app.listen())
+test(t => {
+  return request(app.listen())
     .get('/')
     .expect(200)
     .expect(/hello world/)
+    .expect(/This is a test/)
     .then(() => t.pass())
-)
+})