Skip to content

Commit

Permalink
Add .does as a no-op assertion, Fix #700
Browse files Browse the repository at this point in the history
  • Loading branch information
vieiralucas committed May 7, 2016
1 parent 8f2221c commit 16fb110
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/chai/core/assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module.exports = function (chai, _) {
* - of
* - same
* - but
* - does
*
* @name language chains
* @namespace BDD
Expand All @@ -43,7 +44,7 @@ module.exports = function (chai, _) {
[ 'to', 'be', 'been'
, 'is', 'and', 'has', 'have'
, 'with', 'that', 'which', 'at'
, 'of', 'same', 'but' ].forEach(function (chain) {
, 'of', 'same', 'but', 'does' ].forEach(function (chain) {
Assertion.addProperty(chain);
});

Expand Down
2 changes: 1 addition & 1 deletion test/expect.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('expect', function () {
[ 'to', 'be', 'been'
, 'is', 'and', 'has', 'have'
, 'with', 'that', 'which', 'at'
, 'of', 'same', 'but' ].forEach(test);
, 'of', 'same', 'but', 'does' ].forEach(test);
});

it('fail', function () {
Expand Down
2 changes: 1 addition & 1 deletion test/should.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('should', function() {
[ 'to', 'be', 'been'
, 'is', 'and', 'has', 'have'
, 'with', 'that', 'which', 'at'
, 'of', 'same', 'but' ].forEach(test);
, 'of', 'same', 'but', 'does' ].forEach(test);
});

it('fail', function () {
Expand Down

0 comments on commit 16fb110

Please sign in to comment.