Skip to content

Commit

Permalink
strict equality test
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Oct 14, 2013
1 parent f3413b1 commit 281189b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/cmp.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,12 @@ test('nested nulls', function (t) {
t.ok(equal([ null, null, null ], [ null, null, null ]));
t.end();
});

test('strict equal', function (t) {
t.notOk(equal(
[ { a: 3 }, { b: 4 } ],
[ { a: '3' }, { b: '4' } ],
{ strict: true }
));
t.end();
});

0 comments on commit 281189b

Please sign in to comment.