From a91ecec55aef0c742d033d01c164d8374dd87420 Mon Sep 17 00:00:00 2001 From: Levi Thomason Date: Fri, 12 Oct 2018 11:05:08 -0700 Subject: [PATCH] test: remove console spy in tests --- test/setup.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/test/setup.ts b/test/setup.ts index 2b782905fa..a05bd10bff 100644 --- a/test/setup.ts +++ b/test/setup.ts @@ -11,21 +11,4 @@ enzyme.configure({ disableLifecycleMethods: true, }) -// ---------------------------------------- -// Console -// ---------------------------------------- -// Fail on all activity. -// It is important we overload console here, before consoleUtil.ts is loaded and caches it. -jest.spyOn(console, 'log') -jest.spyOn(console, 'info') -jest.spyOn(console, 'warn') -jest.spyOn(console, 'error') - initKeyboardFocusMock() - -afterAll(() => { - expect(console.log).not.toHaveBeenCalled() - expect(console.info).not.toHaveBeenCalled() - expect(console.warn).not.toHaveBeenCalled() - expect(console.error).not.toHaveBeenCalled() -})