diff options
author | Alan Pearce | 2017-10-08 11:18:37 +0200 |
---|---|---|
committer | Alan Pearce | 2017-10-08 11:18:37 +0200 |
commit | 6fcfcc550921ab43c00d323c172fd9d04211e53d (patch) | |
tree | 2220ab31af63a406f9c4f947e014b022408bf985 /test | |
parent | 529946dc5bdccc2153c97e2040953047319480f4 (diff) | |
download | homestead-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.js | 4 |
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, { |