diff --git a/src/group/components/GroupView.test.js b/src/group/components/GroupView.test.js index 26ebdb9b0..5da325e53 100644 --- a/src/group/components/GroupView.test.js +++ b/src/group/components/GroupView.test.js @@ -123,7 +123,7 @@ const groupViewMemberBase = async ( node: { id: `shared-resource-id-${index}`, shareAccess: 'MEMBERS', - shareUrl: 'https://test-url', + shareUrl: 'https://example.com', source: { id: `de-${index}`, createdAt: '2022-05-20T16:25:21.536679+00:00', @@ -209,7 +209,7 @@ test('GroupView: Share link manager', async () => { sharedResource: { id: `shared-resource-id-0`, shareAccess: 'ALL', - shareUrl: 'https://test-url', + shareUrl: 'https://example.com', source: { id: `de-0`, createdAt: '2022-05-20T16:25:21.536679+00:00', @@ -279,7 +279,7 @@ test('GroupView: Share link manager', async () => { fireEvent.click(within(dialog).getByRole('button', { name: 'Copy Link' })) ); const copyCall = navigator.clipboard.writeText.mock.calls[0]; - expect(copyCall[0].toString()).toStrictEqual('https://test-url'); + expect(copyCall[0].toString()).toStrictEqual('https://example.com'); }); test('GroupView: Share link member', async () => { @@ -313,5 +313,5 @@ test('GroupView: Share link member', async () => { fireEvent.click(within(dialog).getByRole('button', { name: 'Copy Link' })) ); const copyCall = navigator.clipboard.writeText.mock.calls[0]; - expect(copyCall[0].toString()).toStrictEqual('https://test-url'); + expect(copyCall[0].toString()).toStrictEqual('https://example.com'); }); diff --git a/src/sharedData/components/SharedResourceDownload.test.js b/src/sharedData/components/SharedResourceDownload.test.js index 7965594ac..dc52fc132 100644 --- a/src/sharedData/components/SharedResourceDownload.test.js +++ b/src/sharedData/components/SharedResourceDownload.test.js @@ -63,7 +63,7 @@ test('SharedResourceDownload: Has access', async () => { ) .mockResolvedValue({ sharedResource: { - downloadUrl: 'https://test-url', + downloadUrl: 'https://example.com', source: { name: 'map', resourceType: 'geojson', @@ -78,7 +78,7 @@ test('SharedResourceDownload: Has access', async () => { const downloadButton = screen.getByRole('button', { name: 'Download File' }); await act(async () => fireEvent.click(downloadButton)); - expect(window.open).toHaveBeenCalledWith('https://test-url', '_blank'); + expect(window.open).toHaveBeenCalledWith('https://example.com', '_blank'); }); test('SharedResourceDownload: No access', async () => {