update modules alert and compliments

This commit is contained in:
Karsten Hassel
2021-09-25 23:37:37 +02:00
parent 89e803ee42
commit 0183d7a080
11 changed files with 141 additions and 152 deletions

View File

@@ -3,12 +3,16 @@ const config = require("../configs/empty_ipWhiteList");
exports.startApplication = function (configFilename, exec) {
jest.resetModules();
let app = global.app;
if (app) {
app.stop();
}
// Set config sample for use in test
process.env.MM_CONFIG_FILE = configFilename;
if (exec) exec;
const app = require("app.js");
app = require("app.js");
app.start();
global.app = app;
return app;
};