Simplify async .rejects examples

The docs state that "If the promise is fulfilled, the test will automatically fail", so it is not necessary to include the expect.assertions(1) calls since the tests will fail automatically if the promise doesn't reject.

Summary

Test plan

Merge request reports

Loading