X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/52b5bb0ea3c28cd2095837fea61509a70eb792fb..b04ed9ad5145bf8335cc5749b3d2f0ac166ef60f:/src/common/redirect-to.test.ts diff --git a/src/common/redirect-to.test.ts b/src/common/redirect-to.test.ts index f7f5cb38d5..0168fd803f 100644 --- a/src/common/redirect-to.test.ts +++ b/src/common/redirect-to.test.ts @@ -8,7 +8,7 @@ describe('redirect-to', () => { const { location } = window; const config: any = { keepWebServiceUrl: 'http://localhost', - keepWebServiceInlineUrl: 'http://localhost' + keepWebServiceInlineUrl: 'http://localhost-inline' }; const redirectTo = '/test123'; const locationTemplate = { @@ -36,7 +36,7 @@ describe('redirect-to', () => { delete window.location; window.location = { ...locationTemplate, - href: `${location.href}?redirectToPreview=${redirectTo}`, + href: `${location.href}?redirectToDownload=${redirectTo}`, } as any; Object.defineProperty(window, 'localStorage', { value: { @@ -51,7 +51,7 @@ describe('redirect-to', () => { storeRedirects(); // then - expect(window.localStorage.setItem).toHaveBeenCalledWith('redirectToPreview', redirectTo); + expect(window.localStorage.setItem).toHaveBeenCalledWith('redirectToDownload', redirectTo); }); }); @@ -60,7 +60,7 @@ describe('redirect-to', () => { delete window.location; window.location = { ...locationTemplate, - href: `${location.href}?redirectToPreview=${redirectTo}`, + href: `${location.href}?redirectToDownload=${redirectTo}`, } as any;; Object.defineProperty(window, 'localStorage', { value: {