summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2017-06-18 20:07:14 +0200
committerAlan Pearce2017-06-18 20:07:14 +0200
commit2fef943bf1c52e8d2be64521202936ca0f7358e3 (patch)
treeef839e7442e7a996dc3f8c918529a500b7efa53e /test
parente13c5726846a89df4196f6abc9fc98d99d48305b (diff)
downloadhomestead-2fef943bf1c52e8d2be64521202936ca0f7358e3.tar.lz
homestead-2fef943bf1c52e8d2be64521202936ca0f7358e3.tar.zst
homestead-2fef943bf1c52e8d2be64521202936ca0f7358e3.zip
feat: use configly/TOML for configuration
Diffstat (limited to 'test')
-rw-r--r--test/index.test.js4
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 => {