You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be a problem with our type checking for that assertion. We should throw a better error message saying that throw(instanceof Number) is not supported.
We've added this to our Roadmap https://github.com/chaijs/chai/projects/2! We'll be releasing chai 5 soon, but for now I'll close this issue because it is tracked on our roadmap.
Results in 'AssertionError: expected [Function: failingCall] to throw 10 but 10 was thrown'
Passes as normal
And...
Fails with 'AssertionError: expected [Function: failingCall] to throw an error'
The text was updated successfully, but these errors were encountered: