mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
18 lines
531 B
JavaScript
18 lines
531 B
JavaScript
const helpers = require("../global-setup");
|
|
|
|
describe("Alert module", function () {
|
|
beforeAll(function (done) {
|
|
helpers.startApplication("tests/configs/modules/alert/default.js");
|
|
helpers.getDocument(done, 1000);
|
|
});
|
|
afterAll(function () {
|
|
helpers.stopApplication();
|
|
});
|
|
|
|
it("should show the welcome message", function () {
|
|
const elem = document.querySelector(".ns-box .ns-box-inner .light.bright.small");
|
|
expect(elem).not.toBe(null);
|
|
expect(elem.textContent).toContain("Welcome, start was successful!");
|
|
});
|
|
});
|