From 344be31b2e4f9f1521b1a069ddc3e41c08ea8057 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Mon, 25 May 2020 10:38:19 -0700 Subject: Remove global.window check in setupTests --- packages/browser/src/setupTests.ts | 4 ---- 1 file changed, 4 deletions(-) (limited to 'packages/browser/src') diff --git a/packages/browser/src/setupTests.ts b/packages/browser/src/setupTests.ts index 75833a8..019ba42 100644 --- a/packages/browser/src/setupTests.ts +++ b/packages/browser/src/setupTests.ts @@ -3,9 +3,6 @@ // jest.spyOn(console, 'debug').mockImplementation(); // jest.spyOn(console, 'error').mockImplementation(); -// @ts-expect-error -if (global.window) { - /** * JSDom doesn't seem to support `credentials`, so let's define them here so we can mock their * implementations in specific tests. @@ -17,4 +14,3 @@ window.navigator.credentials = { // assertion get: jest.fn(), }; -} \ No newline at end of file -- cgit v1.2.3