mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 17:44:52 -04:00
change getDocument, delay needed, now 2 tests moved
This commit is contained in:
parent
a1c7f20990
commit
c0ce52abe3
8 changed files with 57 additions and 96 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue