Skip to content

Commit

Permalink
fix logger.js
Browse files Browse the repository at this point in the history
  • Loading branch information
khassel committed Sep 28, 2021
1 parent 8224a6a commit c67320f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
enableLog = process.env.JEST_WORKER_ID === undefined;
} else {
// in browser and not running with jsdom
enableLog = typeof window === "object" && window.name === "nodejs";
enableLog = typeof window === "object" && window.name !== "jsdom";
}

if (enableLog) {
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/global-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exports.stopApplication = function () {
exports.getDocument = function (callback, ms) {
const url = "http://" + (config.address || "localhost") + ":" + (config.port || "8080");
jsdom.JSDOM.fromURL(url, { resources: "usable", runScripts: "dangerously" }).then((dom) => {
dom.window.name = "jsdom";
dom.window.onload = function () {
global.document = dom.window.document;
setTimeout(() => {
Expand Down

0 comments on commit c67320f

Please sign in to comment.