move weather-test to e2e

This commit is contained in:
Karsten Hassel
2021-10-16 00:05:12 +02:00
parent e9650285bd
commit 0ec80a7791
17 changed files with 299 additions and 390 deletions

View File

@@ -6,7 +6,11 @@ exports.startApplication = function (configFilename, exec) {
global.app.stop();
}
// Set config sample for use in test
process.env.MM_CONFIG_FILE = configFilename;
if (configFilename === "") {
process.env.MM_CONFIG_FILE = "config/config.js";
} else {
process.env.MM_CONFIG_FILE = configFilename;
}
if (exec) exec;
global.app = require("app.js");
global.app.start();