Skip to content

Commit 7703aad

Browse files
PRME-308 Resolved issue with src/components/blocks/_lloydGeorge/lloydGeorgeDownloadStage/LloydGeorgeDownloadStage.test.tsx > LloydGeorgeDownloadStage > navigates to download complete after auto-clicking link (#783)
Not implemented: navigation to another Document Co-authored-by: Adam Whiting <[email protected]>
1 parent 1d0ad5c commit 7703aad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/components/blocks/_lloydGeorge/lloydGeorgeDownloadStage/LloydGeorgeDownloadStage.test.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @vitest-environment happy-dom
12
import { render, screen } from '@testing-library/react';
23
import { act } from 'react';
34
import {
@@ -123,6 +124,7 @@ describe('LloydGeorgeDownloadStage', () => {
123124
data: { message: 'An error occurred', err_code: 'SP_1001' },
124125
},
125126
};
127+
// eslint-disable-next-line prefer-promise-reject-errors
126128
vi.mocked(getPresignedUrlForZip).mockImplementation(() => Promise.reject(errorResponse));
127129

128130
renderComponent(history);
@@ -166,6 +168,7 @@ describe('LloydGeorgeDownloadStage', () => {
166168
data: { message: 'Unauthorised' },
167169
},
168170
};
171+
// eslint-disable-next-line prefer-promise-reject-errors
169172
vi.mocked(getPresignedUrlForZip).mockImplementation(() => Promise.reject(errorResponse));
170173

171174
renderComponent(history);

0 commit comments

Comments
 (0)