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.
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M test/app.test.js → 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, {