Skip to content

Commit

Permalink
Tests: Fix for logger tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxn committed Jul 9, 2021
1 parent 063d261 commit 277e90c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test/testSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => ({
Expand Down

0 comments on commit 277e90c

Please sign in to comment.