Skip to content

Commit

Permalink
Expect the expected errors, rather than swallowing them.
Browse files Browse the repository at this point in the history
  • Loading branch information
abernix authored and trevor-scheer committed Mar 3, 2020
1 parent f878c7f commit 4f2fbff
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ describe('lifecycle hooks', () => {
experimental_didFailComposition,
});

try {
await gateway.load();
} catch {}
await expect(gateway.load()).rejects.toThrowError();

const callbackArgs = experimental_didFailComposition.mock.calls[0][0];
expect(callbackArgs.serviceList).toHaveLength(1);
Expand Down

0 comments on commit 4f2fbff

Please sign in to comment.