Skip to content

Commit

Permalink
Pass dummy error object to rejected promise
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Dec 18, 2024
1 parent 177b1d4 commit 1b7a4ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('document-capture/hooks/use-async', () => {

expect(container.textContent).to.equal('Loading');

reject();
reject(new Error());

expect(await findByText('Error')).to.be.ok();
expect(console).to.have.loggedError();
Expand Down

0 comments on commit 1b7a4ca

Please sign in to comment.