add CHANGELOG

This commit is contained in:
Karsten Hassel
2021-09-28 21:10:24 +02:00
parent f750436b64
commit 1034171e91
2 changed files with 3 additions and 3 deletions

View File

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