Skip to content

Commit

Permalink
experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Sep 18, 2024
1 parent 55b7b16 commit ae3a3ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/react-pdf/src/Document.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,7 @@ describe('Document', () => {
it('does not throw an error on unmount if loading has not yet finished', async () => {
const { func: onLoadProgress, promise: onLoadProgressPromise } = makeAsyncCallback();

const { unmount } = render(
<Document file={pdfFile} onLoadProgress={onLoadProgress} options={{ stopAtErrors: true }} />,
);
const { unmount } = render(<Document file={pdfFile} onLoadProgress={onLoadProgress} />);

await onLoadProgressPromise;

Expand Down

0 comments on commit ae3a3ec

Please sign in to comment.