X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/9525ed95bef2a8de63b48a0682c342465d29bae9..ae94f4d8463ff6350329e802cb902c8dad96a710:/src/common/redirect-to.test.ts diff --git a/src/common/redirect-to.test.ts b/src/common/redirect-to.test.ts index 177e1656..c7d3a84e 100644 --- a/src/common/redirect-to.test.ts +++ b/src/common/redirect-to.test.ts @@ -19,9 +19,9 @@ describe('redirect-to', () => { port: '80', protocol: 'http', search: '', - reload: () => {}, - replace: () => {}, - assign: () => {}, + reload: () => { }, + replace: () => { }, + assign: () => { }, ancestorOrigins: [], href: '', }; @@ -72,10 +72,10 @@ describe('redirect-to', () => { it('should redirect to page when it is present in session storage', () => { // when - handleRedirects(config); + handleRedirects("abcxyz", config); // then - expect(window.location.href).toBe(`${config.keepWebServiceUrl}${redirectTo}`); + expect(window.location.href).toBe(`${config.keepWebServiceUrl}${redirectTo}?api_token=abcxyz`); }); }); -}); \ No newline at end of file +});