mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 12:12:20 +00:00
34 lines
703 B
JavaScript
34 lines
703 B
JavaScript
|
const helpers = require("../global-setup");
|
||
|
|
||
|
const describe = global.describe;
|
||
|
const it = global.it;
|
||
|
const beforeEach = global.beforeEach;
|
||
|
const afterEach = global.afterEach;
|
||
|
|
||
|
describe("Alert module", function () {
|
||
|
helpers.setupTimeout(this);
|
||
|
|
||
|
let app = null;
|
||
|
|
||
|
beforeEach(function () {
|
||
|
return helpers
|
||
|
.startApplication({
|
||
|
args: ["js/electron.js"]
|
||
|
})
|
||
|
.then(function (startedApp) {
|
||
|
app = startedApp;
|
||
|
});
|
||
|
});
|
||
|
|
||
|
afterEach(function () {
|
||
|
return helpers.stopApplication(app);
|
||
|
});
|
||
|
|
||
|
describe("Default configuration", function () {
|
||
|
before(function () {
|
||
|
// Set config sample for use in test
|
||
|
process.env.MM_CONFIG_FILE = "tests/configs/modules/alert/default.js";
|
||
|
});
|
||
|
});
|
||
|
});
|