diff options
author | Alan Pearce | 2017-06-18 12:24:24 +0200 |
---|---|---|
committer | Alan Pearce | 2017-06-18 12:24:24 +0200 |
commit | da9ff90d3e1b1348c43cd378c0806e159a700810 (patch) | |
tree | ab81bc58d982c6ffe77e160ae9b107acdc72eee6 /test/index.test.js | |
parent | 3bda5fcfb7a23619ba66bef029d89bbd18d2c915 (diff) | |
download | homestead-da9ff90d3e1b1348c43cd378c0806e159a700810.tar.lz homestead-da9ff90d3e1b1348c43cd378c0806e159a700810.tar.zst homestead-da9ff90d3e1b1348c43cd378c0806e159a700810.zip |
feat: Parse front matter as metadata
Diffstat (limited to 'test/index.test.js')
-rw-r--r-- | test/index.test.js | 9 |
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()) -) +}) |