mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
use short if in weatherforecast.js, add comment to logger.js
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
timeEnd: Function.prototype.bind.call(console.timeEnd, console)
|
||||
};
|
||||
|
||||
// the timeStamp instruction fails when running the tests so it is not added in test environment
|
||||
if (process.env.NODE_ENV.trim() !== "test") {
|
||||
logLevel.push({ timeStamp: Function.prototype.bind.call(console.timeStamp, console) });
|
||||
}
|
||||
|
Reference in New Issue
Block a user