feat: Remove meta parameter from logging.

This commit is contained in:
Ruben Verborgh
2022-04-01 10:20:45 +02:00
committed by Joachim Van Herwegen
parent ce5a98b16f
commit 2c6167e0cb
8 changed files with 41 additions and 45 deletions

View File

@@ -157,9 +157,7 @@ describe('GuardedStream', (): void => {
// Only the first error gets logged
jest.advanceTimersByTime(900);
expect(logger.error).toHaveBeenCalledTimes(1);
expect(logger.error).toHaveBeenCalledWith(
'No error listener was attached but error was thrown: 0', { error: errors[0] },
);
expect(logger.error).toHaveBeenCalledWith('No error listener was attached but error was thrown: 0');
jest.advanceTimersByTime(1000);
expect(logger.error).toHaveBeenCalledTimes(1);