Skip to content

Commit

Permalink
Async assertions must be awaited or returned
Browse files Browse the repository at this point in the history
  • Loading branch information
suddjian committed Feb 12, 2022
1 parent 955766b commit b48e636
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ describe('comms', () => {
});
port2.start();

expect(ours.get('someMethod')).rejects.toThrowError(
await expect(ours.get('someMethod')).rejects.toThrowError(
'Unexpected response message',
);
});
Expand Down

0 comments on commit b48e636

Please sign in to comment.