diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/index.test.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/index.test.js b/test/index.test.js index e13e52c..926c5d4 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -2,7 +2,9 @@ const test = require('ava') const path = require('path') const request = require('supertest') -process.env.POST_DIR = path.resolve(__dirname, '../test/data/') +const config = require('../src/modules/config.js') +config.posts.folder = path.resolve(__dirname, './data/') + const app = require('../src/index.js') test('homepage', t => { |