use short if in weatherforecast.js, add comment to logger.js

This commit is contained in:
Karsten Hassel
2021-06-15 23:29:07 +02:00
parent 1d8af5835d
commit a71e61cd30
2 changed files with 5 additions and 12 deletions

View File

@@ -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) });
}