Merge pull request #2599 from khassel/jest

This commit is contained in:
Michael Teeuw 2021-06-17 07:06:36 +02:00 committed by GitHub
commit cbe7b1a5b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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) {