16812: Added types to remove compile errors
authorDaniel Kutyła <daniel.kutyla@contractors.roche.com>
Tue, 29 Sep 2020 19:43:55 +0000 (21:43 +0200)
committerDaniel Kutyła <daniel.kutyla@contractors.roche.com>
Tue, 29 Sep 2020 19:43:55 +0000 (21:43 +0200)
Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła <daniel.kutyla@contractors.roche.com>

src/common/redirect-to.test.ts

index 3dad8233034711c93fb0b3b198a6aaa458263a6e..eed5b4c8e12005d168a2e07ea179ea5d58d5c3c7 100644 (file)
@@ -17,7 +17,7 @@ describe('redirect-to', () => {
             delete window.location;
             window.location = {
                 href: `${location.href}?redirectTo=${redirectTo}`,
-            };
+            } as any;
             Object.defineProperty(window, 'sessionStorage', {
                 value: {
                     setItem: jest.fn(),
@@ -40,7 +40,7 @@ describe('redirect-to', () => {
             delete window.location;
             window.location = {
                 href: `${location.href}?redirectTo=${redirectTo}`,
-            };
+            } as any;
             Object.defineProperty(window, 'sessionStorage', {
                 value: {
                     getItem: () => redirectTo,