16812: More type fixes
authorDaniel Kutyła <daniel.kutyla@contractors.roche.com>
Tue, 29 Sep 2020 20:57:56 +0000 (22:57 +0200)
committerDaniel Kutyła <daniel.kutyla@contractors.roche.com>
Tue, 29 Sep 2020 20:57:56 +0000 (22:57 +0200)
Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła <daniel.kutyla@contractors.roche.com>

src/common/redirect-to.test.ts

index d1426c2916b75bc62c2eb3c4c3f11683fe3effe1..ad8ac9e0c2354680948848ff1ba35593a61ee010 100644 (file)
@@ -19,7 +19,7 @@ describe('redirect-to', () => {
         reload: () => {},
         replace: () => {},
         assign: () => {},
-        ancestorOrigins: new DOMStringList(),
+        ancestorOrigins: [],
         href: '',
     };
 
@@ -33,7 +33,7 @@ describe('redirect-to', () => {
             window.location = {
                 ...locationTemplate,
                 href: `${location.href}?redirectTo=${redirectTo}`,
-            };
+            } as any;
             Object.defineProperty(window, 'sessionStorage', {
                 value: {
                     setItem: jest.fn(),
@@ -57,7 +57,7 @@ describe('redirect-to', () => {
             window.location = {
                 ...locationTemplate,
                 href: `${location.href}?redirectTo=${redirectTo}`,
-            };
+            } as any;;
             Object.defineProperty(window, 'sessionStorage', {
                 value: {
                     getItem: () => redirectTo,