Skip to content

Commit

Permalink
Override include method - fix overriding logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mrboj committed Nov 2, 2023
1 parent 322e0d3 commit 9c97063
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chai-exclude.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ function chaiExclude (chai, utils) {
Assertion.overwriteMethod('equal', removeKeysAndAssert)
Assertion.overwriteMethod('equals', removeKeysAndAssert)

Assertion.addChainableMethod('include', removeKeysAndAssert, keepChainingBehavior)
Assertion.addChainableMethod('contain', removeKeysAndAssert, keepChainingBehavior)
Assertion.addChainableMethod('contains', removeKeysAndAssert, keepChainingBehavior)
Assertion.addChainableMethod('includes', removeKeysAndAssert, keepChainingBehavior)
Assertion.overwriteChainableMethod('include', removeKeysAndAssert, keepChainingBehavior)
Assertion.overwriteChainableMethod('contain', removeKeysAndAssert, keepChainingBehavior)
Assertion.overwriteChainableMethod('contains', removeKeysAndAssert, keepChainingBehavior)
Assertion.overwriteChainableMethod('includes', removeKeysAndAssert, keepChainingBehavior)
}

module.exports = chaiExclude
Expand Down

0 comments on commit 9c97063

Please sign in to comment.