-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected matching logic #54
Comments
Good point. We should probably look into finishing that work |
I'll see if I can get it closer this weekend, as I am having a hack day with @khamiltonuk |
Oh nice! That'd be awesome. Unfortunately, I don't have the time to look into the implementation myself rn, but I'm happy to review and assist. |
Is this still broken? |
Yes, this is also relevant with the |
This was addressed in #50. |
Seems this failed to update the docs, so the docs are broken. Ref sinonjs/sinon#2614 (reply in thread) |
To my surprise, the following passes:
My expectation would be that the above would fail due to the array not being equal. The following should pass:
This differs from how Sinon.JS matchers work:
I prefer the Sinon match logic, because it allows me to explicitly state what I expect with nested matchers:
If we're merging the matcher logic, I think we should basically replace the referee logic with the Sinon implementation, especially since the user base is a tad larger over there.
The text was updated successfully, but these errors were encountered: