-
-
Notifications
You must be signed in to change notification settings - Fork 700
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Adding members and memberEquals assertions #153
Conversation
Looks pretty good, but I do have a few comments.
|
Official code style guideline: wiki |
…nd set equality. Implements chaijs#148.
Thanks for the wiki link. Can you clarify exactly what you mean in terms of implementing it like Are the following syntaxes acceptable? // subset
expect([1, 2, 3]).to.include.members([1, 2]);
// set equality
expect([1, 2, 3]).to.have.same.members([3, 2, 1]) |
Those syntaxes are exactly what I mean 👍 |
bump - any update on this? |
It looks to me like expect([ 1, 2, 3 ]).members([ 3, 2, 1 ]); You need a default assertion for your primary method. Remove |
bump |
Sorry about delay ... I didn't get notified about your push. Looks good. Merging! |
Adding members and memberEquals assertions
Awesome, thanks! |
Checking for subsets and set equality. Implements #148.
Let me know if there's anything I'm doing that's not up to the project standards. I've tried to be observant.