Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed Jan 26, 2024
1 parent 5d08e91 commit e08d796
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions test/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -1981,11 +1981,11 @@ describe('assert', function () {

err(function () {
assert.sameMembers({}, [], 'blah');
}, 'blah: expected {} to be an array');
}, 'blah: expected {} to be an iterator');

err(function () {
assert.sameMembers([], {}, 'blah');
}, 'blah: expected {} to be an array');
}, 'blah: expected {} to be an iterator');
});

it('notSameMembers', function() {
Expand Down
8 changes: 4 additions & 4 deletions test/expect.js
Original file line number Diff line number Diff line change
Expand Up @@ -3508,19 +3508,19 @@ describe('expect', function () {

err(function () {
expect({}).members([], 'blah');
}, 'blah: expected {} to be an array');
}, 'blah: expected {} to be an iterator');

err(function () {
expect({}, 'blah').members([]);
}, 'blah: expected {} to be an array');
}, 'blah: expected {} to be an iterator');

err(function () {
expect([]).members({}, 'blah');
}, 'blah: expected {} to be an array');
}, 'blah: expected {} to be an iterator');

err(function () {
expect([], 'blah').members({});
}, 'blah: expected {} to be an array');
}, 'blah: expected {} to be an iterator');
});

it('deep.members', function() {
Expand Down
6 changes: 3 additions & 3 deletions test/should.js
Original file line number Diff line number Diff line change
Expand Up @@ -2820,11 +2820,11 @@ describe('should', function() {

err(function() {
'foo'.should.include.members([12], 'blah');
}, "blah: expected 'foo' to be an array");
}, "blah: expected 'foo' to be an iterator");

err(function() {
[1, 2, 3].should.include.members('o', 'blah');
}, "blah: expected 'o' to be an array");
}, "blah: expected 'o' to be an iterator");
});

it('memberEquals', function() {
Expand All @@ -2845,7 +2845,7 @@ describe('should', function() {

err(function() {
[1, 2, 3].should.have.same.members(4, 'blah');
}, 'blah: expected 4 to be an array');
}, 'blah: expected 4 to be an iterator');
});

it('deep.members', function() {
Expand Down

0 comments on commit e08d796

Please sign in to comment.