Skip to content

Commit 0064f26

Browse files
ScottRudigermeeber
authored andcommitted
feat(assertions): add 'still' language chain (#1194)
1 parent 6da897d commit 0064f26

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

lib/chai/core/assertions.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,17 @@ module.exports = function (chai, _) {
3333
* - same
3434
* - but
3535
* - does
36+
* - still
3637
*
3738
* @name language chains
3839
* @namespace BDD
3940
* @api public
4041
*/
4142

42-
[ 'to', 'be', 'been'
43-
, 'is', 'and', 'has', 'have'
44-
, 'with', 'that', 'which', 'at'
45-
, 'of', 'same', 'but', 'does' ].forEach(function (chain) {
43+
[ 'to', 'be', 'been', 'is'
44+
, 'and', 'has', 'have', 'with'
45+
, 'that', 'which', 'at', 'of'
46+
, 'same', 'but', 'does', 'still' ].forEach(function (chain) {
4647
Assertion.addProperty(chain);
4748
});
4849

test/expect.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ describe('expect', function () {
230230
expect([1, 2, 3])[chain].contains(1);
231231
}
232232

233-
[ 'to', 'be', 'been'
234-
, 'is', 'and', 'has', 'have'
235-
, 'with', 'that', 'which', 'at'
236-
, 'of', 'same', 'but', 'does' ].forEach(test);
233+
[ 'to', 'be', 'been', 'is'
234+
, 'and', 'has', 'have', 'with'
235+
, 'that', 'which', 'at', 'of'
236+
, 'same', 'but', 'does', 'still' ].forEach(test);
237237
});
238238

239239
describe("fail", function() {

test/should.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ describe('should', function() {
227227
[1, 2, 3].should[chain].contains(1);
228228
}
229229

230-
[ 'to', 'be', 'been'
231-
, 'is', 'and', 'has', 'have'
232-
, 'with', 'that', 'which', 'at'
233-
, 'of', 'same', 'but', 'does' ].forEach(test);
230+
[ 'to', 'be', 'been', 'is'
231+
, 'and', 'has', 'have', 'with'
232+
, 'that', 'which', 'at', 'of'
233+
, 'same', 'but', 'does', 'still' ].forEach(test);
234234
});
235235

236236
describe("fail", function() {

0 commit comments

Comments
 (0)