Skip to content

Commit 4180242

Browse files
committed
test: added message argument to negated nested-, deep-, own- and deepOwnInclude
1 parent 40bb490 commit 4180242

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/assert.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,8 @@ describe('assert', function () {
771771
}, "expected { a: { b: [ 'x', 'y' ] } } to have nested property 'a.c'");
772772

773773
err(function () {
774-
assert.notNestedInclude({a: {b: ['x', 'y']}}, {'a.b[1]': 'y'});
775-
}, "expected { a: { b: [ 'x', 'y' ] } } to not have nested property 'a.b[1]' of 'y'");
774+
assert.notNestedInclude({a: {b: ['x', 'y']}}, {'a.b[1]': 'y'}, 'blah');
775+
}, "blah: expected { a: { b: [ 'x', 'y' ] } } to not have nested property 'a.b[1]' of 'y'");
776776
});
777777

778778
it('deepNestedInclude and notDeepNestedInclude', function() {
@@ -796,8 +796,8 @@ describe('assert', function () {
796796
}, "expected { a: { b: [ [Object] ] } } to have deep nested property 'a.c'");
797797

798798
err(function () {
799-
assert.notDeepNestedInclude({a: {b: [{x: 1}]}}, {'a.b[0]': {x: 1}});
800-
}, "expected { a: { b: [ [Object] ] } } to not have deep nested property 'a.b[0]' of { x: 1 }");
799+
assert.notDeepNestedInclude({a: {b: [{x: 1}]}}, {'a.b[0]': {x: 1}}, 'blah');
800+
}, "blah: expected { a: { b: [ [Object] ] } } to not have deep nested property 'a.b[0]' of { x: 1 }");
801801
});
802802

803803
it('ownInclude and notOwnInclude', function() {
@@ -820,8 +820,8 @@ describe('assert', function () {
820820
}, "expected { a: 1 } to have own property 'toString'");
821821

822822
err(function () {
823-
assert.notOwnInclude({a: 1}, {a: 1});
824-
}, "expected { a: 1 } to not have own property 'a' of 1");
823+
assert.notOwnInclude({a: 1}, {a: 1}, 'blah');
824+
}, "blah: expected { a: 1 } to not have own property 'a' of 1");
825825
});
826826

827827
it('deepOwnInclude and notDeepOwnInclude', function() {
@@ -842,8 +842,8 @@ describe('assert', function () {
842842
}, "expected { a: { b: 2 } } to have deep own property 'toString'");
843843

844844
err(function () {
845-
assert.notDeepOwnInclude({a: {b: 2}}, {a: {b: 2}});
846-
}, "expected { a: { b: 2 } } to not have deep own property 'a' of { b: 2 }");
845+
assert.notDeepOwnInclude({a: {b: 2}}, {a: {b: 2}}, 'blah');
846+
}, "blah: expected { a: { b: 2 } } to not have deep own property 'a' of { b: 2 }");
847847
});
848848

849849
it('keys(array|Object|arguments)', function(){

0 commit comments

Comments
 (0)