From 6fcfcc550921ab43c00d323c172fd9d04211e53d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 8 Oct 2017 11:18:37 +0200 Subject: Allow config file to be specified 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. --- test/app.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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, { -- cgit 1.4.1