mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 04:02:12 +00:00
Merge pull request #2599 from khassel/jest
This commit is contained in:
commit
cbe7b1a5b9
@ -55,6 +55,7 @@ Special thanks to the following contributors: @B1gG, @codac, @ezeholz, @khassel,
|
||||
- Fix config check failing when encountering let syntax ("Parsing error: Unexpected token config")
|
||||
- Fix calendar debug check
|
||||
- Really run prettier over all files
|
||||
- Fix logger.js after jest changes
|
||||
|
||||
## [2.15.0] - 2021-04-01
|
||||
|
||||
|
@ -36,8 +36,8 @@
|
||||
};
|
||||
|
||||
// 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) });
|
||||
if (typeof process === "object" && process.env.NODE_ENV.trim() !== "test") {
|
||||
logLevel = Object.assign(logLevel, { timeStamp: Function.prototype.bind.call(console.timeStamp, console) });
|
||||
}
|
||||
|
||||
logLevel.setLogLevel = function (newLevel) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user