X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/5f40f3d3559ba3705c3a788d84e33ff8221bd0bd..b61a12ca0d14433ddb10a6d6361a18b1f127c98e:/src/views-components/context-menu/actions/helpers.test.ts diff --git a/src/views-components/context-menu/actions/helpers.test.ts b/src/views-components/context-menu/actions/helpers.test.ts index b2cb4a55..7776d0e5 100644 --- a/src/views-components/context-menu/actions/helpers.test.ts +++ b/src/views-components/context-menu/actions/helpers.test.ts @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { sanitizeToken, getClipboardUrl, getInlineFileUrl } from "./helpers"; +import { sanitizeToken, getCollectionItemClipboardUrl, getInlineFileUrl } from "./helpers"; describe('helpers', () => { // given @@ -22,10 +22,10 @@ describe('helpers', () => { describe('getClipboardUrl', () => { it('should add redirectTo query param', () => { // when - const result = getClipboardUrl(url); + const result = getCollectionItemClipboardUrl(url); // then - expect(result).toBe('http://localhost?redirectTo=https://example.com/c=zzzzz-4zz18-0123456789abcde/LIMS/1.html'); + expect(result).toBe('http://localhost?redirectToDownload=https://example.com/c=zzzzz-4zz18-0123456789abcde/LIMS/1.html'); }); }); @@ -67,4 +67,4 @@ describe('helpers', () => { expect(result).toBe('https://download.example.com/c=zzzzz-4zz18-0123456789abcde/t=v2/a/b/LIMS/1.html'); }); }); -}); \ No newline at end of file +});