mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
change getDocument, delay needed, now 2 tests moved
This commit is contained in:
@@ -27,11 +27,11 @@
|
||||
let enableLog;
|
||||
if (typeof exports === "object") {
|
||||
// in nodejs and not running with jest
|
||||
enableLog = (process.env.JEST_WORKER_ID === undefined);
|
||||
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 === "nodejs";
|
||||
}
|
||||
|
||||
if (enableLog) {
|
||||
logLevel = {
|
||||
|
Reference in New Issue
Block a user