test: for ever err() there must be a passing version

This commit is contained in:
Jake Luer 2013-02-04 19:28:26 -05:00
parent ab4bd0e76f
commit 4db0b20c57

View file

@ -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\' }");