From 277e90caf63084de26d6f46840fffeefd140bd36 Mon Sep 17 00:00:00 2001 From: tgxn Date: Fri, 9 Jul 2021 15:57:19 +0200 Subject: [PATCH] Tests: Fix for logger tests --- test/testSetup.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/test/testSetup.js b/test/testSetup.js index 941a984..ede0064 100644 --- a/test/testSetup.js +++ b/test/testSetup.js @@ -2,16 +2,14 @@ jest.mock("winston", () => ({ format: { simple: jest.fn() }, - createLogger: jest.fn().mockReturnValue({ - info: jest.fn(), - error: jest.fn(), - debug: jest.fn(), - log: jest.fn() - }), transports: { Console: jest.fn(), DailyRotateFile: jest.fn() - } + }, + info: jest.fn(), + error: jest.fn(), + debug: jest.fn(), + log: jest.fn() })); jest.mock("winston-daily-rotate-file", () => ({