Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion js/loader.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* global defaultModules, vendor */

// eslint-disable-next-line no-unused-vars
const Loader = (function () {

/* Create helper variables */
Expand Down Expand Up @@ -295,3 +294,5 @@ const Loader = (function () {
}
};
}());

globalThis.Loader = Loader;
3 changes: 2 additions & 1 deletion js/socketclient.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* global io */

// eslint-disable-next-line no-unused-vars
const MMSocket = function (moduleName) {
if (typeof moduleName !== "string") {
throw new Error("Please set the module name for the MMSocket.");
Expand Down Expand Up @@ -45,3 +44,5 @@ const MMSocket = function (moduleName) {
this.socket.emit(notification, payload);
};
};

globalThis.MMSocket = MMSocket;
1 change: 1 addition & 0 deletions tests/e2e/port_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describe("port directive configuration", () => {

afterAll(async () => {
await helpers.stopApplication();
delete process.env.MM_PORT;
});

it("should return 200", async () => {
Expand Down
14 changes: 0 additions & 14 deletions tests/electron/modules/calendar_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,6 @@ describe("Calendar module", () => {
return await loc.count();
};

/**
* Use this for debugging broken tests, it will console log the text of the calendar module
* @returns {Promise<void>}
*/
// eslint-disable-next-line no-unused-vars
const logAllText = async () => {
expect(global.page).not.toBeNull();
const loc = await global.page.locator(".calendar .event");
const elem = loc.first();
await elem.waitFor();
expect(elem).not.toBeNull();
console.log(await loc.allInnerTexts());
};

const first = 0;
const second = 1;
const third = 2;
Expand Down