Browse Source

Improve tests for deepEqual (#1000)

Additional tests:
* Empty array and empty object do not match
* Array and object do not match
hoisting-throws-helper
Forresst 8 years ago
committed by Sindre Sorhus
parent
commit
8446f48d16
  1. 8
      test/assert.js

8
test/assert.js

@ -230,6 +230,14 @@ test('.deepEqual()', function (t) {
});
});
t.throws(function () {
assert.deepEqual({}, []);
});
t.throws(function () {
assert.deepEqual({0: 'a', 1: 'b'}, ['a', 'b']);
});
// Regression test end here
t.doesNotThrow(function () {

Loading…
Cancel
Save