Skip to content

Commit

Permalink
Merge pull request #702 from pgarrison/master
Browse files Browse the repository at this point in the history
.members should show diff
  • Loading branch information
keithamus committed May 10, 2016
2 parents 8e781c4 + e5ac890 commit 38315fb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/chai/core/assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1589,19 +1589,19 @@ module.exports = function (chai, _) {
if (flag(this, 'contains')) {
return this.assert(
isSubsetOf(subset, obj, cmp)
, 'expected #{this} to be a superset of #{act}'
, 'expected #{this} to not be a superset of #{act}'
, obj
, 'expected #{this} to be a superset of #{exp}'
, 'expected #{this} to not be a superset of #{exp}'
, subset
, obj
);
}

this.assert(
isSubsetOf(obj, subset, cmp) && isSubsetOf(subset, obj, cmp)
, 'expected #{this} to have the same members as #{act}'
, 'expected #{this} to not have the same members as #{act}'
, obj
, 'expected #{this} to have the same members as #{exp}'
, 'expected #{this} to not have the same members as #{exp}'
, subset
, obj
);
});

Expand Down

0 comments on commit 38315fb

Please sign in to comment.