mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 04:45:17 +00:00
update without_modules.js and env_spec.js
This commit is contained in:
@@ -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²");
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user