Skip to content

Commit

Permalink
Tiny test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rafasofizada committed Jul 21, 2023
1 parent c6a3abf commit c87ae71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/iteration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ describe('FileIterator & Async Iteration Protocol', () => {
cleanupFn,
);

fileIterator.throw(new Error("ignored"));
fileIterator.throw(new Error("thrown"));
fileIterator.throw(new Error("ignored"));

await expect(fileIterator.next()).rejects.toThrow("ignored");
await expect(fileIterator.next()).rejects.toThrow("thrown");
expect(cleanupFn).toBeCalledTimes(1);
});

Expand Down

0 comments on commit c87ae71

Please sign in to comment.