mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
add CHANGELOG
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*
|
||||
* @param {string} err The error message.
|
||||
*/
|
||||
function myError(err) {
|
||||
function mockError(err) {
|
||||
if (err.includes("ECONNREFUSED") || err.includes("ECONNRESET") || err.includes("socket hang up") || err.includes("exports is not defined")) {
|
||||
jest.fn();
|
||||
} else {
|
||||
@@ -14,7 +14,7 @@ function myError(err) {
|
||||
global.console = {
|
||||
log: jest.fn(),
|
||||
dir: console.dir,
|
||||
error: myError,
|
||||
error: mockError,
|
||||
warn: console.warn,
|
||||
info: jest.fn(),
|
||||
debug: console.debug
|
||||
|
Reference in New Issue
Block a user