update without_modules.js and env_spec.js

This commit is contained in:
Karsten Hassel
2021-09-25 22:12:53 +02:00
parent c0ce52abe3
commit 89e803ee42
5 changed files with 41 additions and 43 deletions

View File

@@ -3,8 +3,9 @@ const helpers = require("./global-setup");
let app = null;
describe("Electron app environment", function () {
beforeAll(function () {
app = helpers.startApplication("tests/configs/env.js");
beforeAll(function (done) {
app = helpers.startApplication("tests/configs/default.js");
helpers.getDocument(done);
});
afterAll(function () {
helpers.stopApplication(app);
@@ -23,4 +24,10 @@ describe("Electron app environment", function () {
done();
});
});
it("should show the title MagicMirror²", function () {
const elem = document.querySelector("title");
expect(elem).not.toBe(null);
expect(elem.textContent).toBe("MagicMirror²");
});
});