mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-22 05:07:05 +00:00
reset changes on js/logger.js, mock logger.js in global_vars tests, workaround for failing dev_console test
This commit is contained in:
20
tests/unit/mocks/logger.js
Normal file
20
tests/unit/mocks/logger.js
Normal file
@@ -0,0 +1,20 @@
|
||||
(function (root, factory) {
|
||||
// Node, CommonJS-like
|
||||
module.exports = factory(root.config);
|
||||
})(this, function (config) {
|
||||
let logLevel = {
|
||||
debug: function () {},
|
||||
log: function () {},
|
||||
info: function () {},
|
||||
warn: function () {},
|
||||
error: function () {},
|
||||
group: function () {},
|
||||
groupCollapsed: function () {},
|
||||
groupEnd: function () {},
|
||||
time: function () {},
|
||||
timeEnd: function () {},
|
||||
timeStamp: function () {}
|
||||
};
|
||||
|
||||
return logLevel;
|
||||
});
|
Reference in New Issue
Block a user