.catch + match/equals doesn't assert that a particular call throws error. It just asserts IF an error is thrown it will satisfy assertions inside. Consequently, it will pass the test even if something doesn't throw while it should.
Type
[x] Test
[x] Chore
SemVer
[ ] No bump needed
Checklist
[x] Lint and unit tests pass with my changes
[x] I have added tests that prove my fix is effective/works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes are merged and published in downstream modules
Notable Changes
.catch
+match
/equals
doesn't assert that a particular call throws error. It just asserts IF an error is thrown it will satisfy assertions inside. Consequently, it will pass the test even if something doesn't throw while it should.Type
SemVer
Checklist