Export app as a separate entry from master.js

Change the module exports from master.js to allow additional objects to
be passed to allow better unit testing.
This commit is contained in:
Hornwitser committed 2019-09-04 17:36:06 +02:00
1 parent af2471b427
commit 5d6f6de379
2 files changed
+6 -4

No files matched your search

+3 -1
View File
@@ -971,7 +971,9 @@ async function startServer() {
}
}
module.exports = app;
module.exports = {
app,
}
if (module === require.main) {
console.warn(`