Skip to content

Commit

Permalink
Merge pull request #328 from lo1tuma/issue-327
Browse files Browse the repository at this point in the history
Add includes and contains alias (fixes #327)
  • Loading branch information
keithamus committed Dec 27, 2014
2 parents 4dc7cc0 + 061c790 commit 2a91fe0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/chai/core/assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ module.exports = function (chai, _) {
*
* @name include
* @alias contain
* @alias includes
* @alias contains
* @param {Object|String|Number} obj
* @param {String} message _optional_
* @api public
Expand Down Expand Up @@ -209,6 +211,8 @@ module.exports = function (chai, _) {

Assertion.addChainableMethod('include', include, includeChainingBehavior);
Assertion.addChainableMethod('contain', include, includeChainingBehavior);
Assertion.addChainableMethod('contains', include, includeChainingBehavior);
Assertion.addChainableMethod('includes', include, includeChainingBehavior);

/**
* ### .ok
Expand Down

0 comments on commit 2a91fe0

Please sign in to comment.