Skip to content

Commit

Permalink
Add has to language chains
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanbeevers committed Dec 27, 2013
1 parent 564af34 commit 4ea26a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/chai/core/assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function (chai, _) {
/**
* ### Language Chains
*
* The following are provide as chainable getters to
* The following are provided as chainable getters to
* improve the readability of your assertions. They
* do not provide an testing capability unless they
* have been overwritten by a plugin.
Expand All @@ -26,6 +26,7 @@ module.exports = function (chai, _) {
* - is
* - that
* - and
* - has
* - have
* - with
* - at
Expand All @@ -37,7 +38,7 @@ module.exports = function (chai, _) {
*/

[ 'to', 'be', 'been'
, 'is', 'and', 'have'
, 'is', 'and', 'has', 'have'
, 'with', 'that', 'at'
, 'of', 'same' ].forEach(function (chain) {
Assertion.addProperty(chain, function () {
Expand Down

0 comments on commit 4ea26a7

Please sign in to comment.