about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2017-10-08 11:18:37 +0200
committerAlan Pearce2017-10-08 11:18:37 +0200
commit6fcfcc550921ab43c00d323c172fd9d04211e53d (patch)
tree2220ab31af63a406f9c4f947e014b022408bf985 /test
parent529946dc5bdccc2153c97e2040953047319480f4 (diff)
downloadhomestead-6fcfcc550921ab43c00d323c172fd9d04211e53d.tar.lz
homestead-6fcfcc550921ab43c00d323c172fd9d04211e53d.tar.zst
homestead-6fcfcc550921ab43c00d323c172fd9d04211e53d.zip
Allow config file to be specified 2017
Currently via environment variable, but for now that's fine as the
only use that I can forsee is for testing, where the plumbing is more
important than the interface.
Diffstat (limited to 'test')
-rw-r--r--test/app.test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/app.test.js b/test/app.test.js
index a3f06a1..196041a 100644
--- a/test/app.test.js
+++ b/test/app.test.js
@@ -7,11 +7,11 @@ const cheerio = require("cheerio");
 const mf = require("microformat-node");
 
 process.chdir(path.resolve(__dirname, "./testsite/"));
-const config = require(path.resolve(__dirname, "../src/modules/config.js"));
+const getConfig = require(path.resolve(__dirname, "../src/modules/config.js"));
 
 const App = require("../src/app.js");
 let app;
-test.before(async t => (app = await App()));
+test.before(async t => (app = await App(getConfig("./testsite/config.toml"))));
 
 const parseResponse = res =>
   cheerio.load(res.text, {