Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
Assertion count wasn't updated following interface changes; we've now
got two inline expectations so this isn't needed.
  • Loading branch information
rylnd committed Jun 28, 2020
1 parent 02101c7 commit 4f43637
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ describe('useAsyncTask', () => {
});

it('populates error if task rejects', async () => {
expect.assertions(3);
task.mockRejectedValue(new Error('whoops'));
const { result, waitForNextUpdate } = renderHook(() => useAsyncTask(task));

Expand Down

0 comments on commit 4f43637

Please sign in to comment.