Blame view

node_modules/deep-is/test/cmp.js 446 Bytes
f7563de62   Palak Handa   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  var test = require('tape');
  var equal = require('../');
  
  test('equal', function (t) {
      t.ok(equal(
          { a : [ 2, 3 ], b : [ 4 ] },
          { a : [ 2, 3 ], b : [ 4 ] }
      ));
      t.end();
  });
  
  test('not equal', function (t) {
      t.notOk(equal(
          { x : 5, y : [6] },
          { x : 5, y : 6 }
      ));
      t.end();
  });
  
  test('nested nulls', function (t) {
      t.ok(equal([ null, null, null ], [ null, null, null ]));
      t.end();
  });