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
Samsam 3 #49
Conversation
This has not been exported yet, currently, we're just wiring up the tests
* Integrate sinon.match with samsam.match * Integrate samsam.match with samsam.deepEqual * Simplify deepEqualCyclic by swapping actual and expected * Order exported functions alphabetically * More consistent formatting in test case * Group positive and negative tests * Rename sinon-match.js to matcher.js
This might need a little more work. A first attempt to integrate this with Sinon causes 6 tests to fail. We can keep this PR open for discussion and tracking the changes. |
It turns out that Sinon calls I'm surprised how clean this went. I replace the entire Given that referee uses |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
BREAKING: This brings the samsam.match implementation closer to how sinon.match behaves. Nested object where recursively compared using samsam.match itself. This change uses samsam.deepEqual for recursive checks instead. If matching logic is desireable on nested objects, samsam.createMatcher can be used which is now recognized.
Pull Request Test Coverage Report for Build 203
💛 - Coveralls |
Released in |
Purpose (TL;DR) - mandatory
This PR contains the set of changes for samsam 3 that have been collected on the
next
branch.The changes should be downward compatible, but given the scope, I'd like to release this as a major. This will also allow to make a clean switch in Sinon.
How to verify - mandatory
npm install
npm t
Checklist for author
npm run lint
passes