Skip to content
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

Fixes issue #291, adds assert.sameDeepMembers #312

Merged
merged 2 commits into from
Dec 3, 2014

Conversation

lexi-sh
Copy link

@lexi-sh lexi-sh commented Nov 29, 2014

This should fix #291 and adds the sameDeepMembers function that expect and should already have. If there are any issues please let me know.

Thanks!

@@ -1017,6 +1017,25 @@ module.exports = function (chai, util) {
}

/**
* ### .sameDeepMembers(set1, set2, [message])
*
* Asserts that `set1` and `set2` have deeply the same members.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The wording ("have deeply the same members") is a bit funny here. May I suggest "have the same deep members", or "have the same members - using a deep equality check".

@lexi-sh
Copy link
Author

lexi-sh commented Nov 30, 2014

Pushed the comment change, I went with "have the same members - using a deep equality check" since it makes it very explicit.

@keithamus
Copy link
Member

Looks great to me! Thanks for your efforts @cjqed. I'll wait for @logicalparadox to give the 👍 and merge then 😄.

@lexi-sh
Copy link
Author

lexi-sh commented Dec 1, 2014

Sounds good @keithamus . I'm probably going to tackle a few more issues that are low hanging fruits and maybe even some tougher ones, I'm just in that kind of mood (and honestly Chai has a very nice codebase!)

@keithamus
Copy link
Member

@vesln or @logicalparadox, you happy to see this merged in? If so I'll hit the big green button.

@logicalparadox
Copy link
Member

👍

@keithamus
Copy link
Member

Oof, sorry @cjqed - one of the PRs I just merged conflicts with this one. If you could rebase this branch then I can merge it in. Should be an easy fix - some new tests were added and its just conflicting with your diff - make sure to keep both sets of tests.

Thanks for your patience @cjqed :)

@lexi-sh lexi-sh force-pushed the 291-assert-same-deep-members branch from 1170dd2 to 0d814eb Compare December 3, 2014 00:38
@lexi-sh
Copy link
Author

lexi-sh commented Dec 3, 2014

This should be ready to merge, I'll work on #313 and try to make it so that it can be automerged as well.

@keithamus
Copy link
Member

keithamus added a commit that referenced this pull request Dec 3, 2014
Fixes issue #291, adds assert.sameDeepMembers
@keithamus keithamus merged commit f06278f into chaijs:master Dec 3, 2014
@keithamus keithamus mentioned this pull request Feb 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test on members does not work on objects
3 participants