mirror of
https://github.com/chaijs/chai
synced 2024-11-14 15:57:10 +00:00
test: for ever err() there must be a passing version
This commit is contained in:
parent
ab4bd0e76f
commit
4db0b20c57
1 changed files with 8 additions and 3 deletions
|
@ -164,13 +164,18 @@ suite('assert', function () {
|
|||
test('deepEqual', function() {
|
||||
assert.deepEqual({tea: 'chai'}, {tea: 'chai'});
|
||||
|
||||
|
||||
err(function () {
|
||||
assert.deepEqual({tea: 'chai'}, {tea: 'black'});
|
||||
}, "expected { tea: \'chai\' } to deeply equal { tea: \'black\' }");
|
||||
|
||||
var obj1 = Object.create({tea: 'chai'});
|
||||
var obj2 = Object.create({tea: 'black'});
|
||||
var obja = Object.create({ tea: 'chai' })
|
||||
, objb = Object.create({ tea: 'chai' });
|
||||
|
||||
assert.deepEqual(obja, objb);
|
||||
|
||||
var obj1 = Object.create({tea: 'chai'})
|
||||
, obj2 = Object.create({tea: 'black'});
|
||||
|
||||
err(function () {
|
||||
assert.deepEqual(obj1, obj2);
|
||||
}, "expected { tea: \'chai\' } to deeply equal { tea: \'black\' }");
|
||||
|
|
Loading…
Reference in a new issue