source: imaps-frontend/node_modules/deep-is/test/cmp.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 446 bytes
RevLine 
[d565449]1var test = require('tape');
2var equal = require('../');
3
4test('equal', function (t) {
5 t.ok(equal(
6 { a : [ 2, 3 ], b : [ 4 ] },
7 { a : [ 2, 3 ], b : [ 4 ] }
8 ));
9 t.end();
10});
11
12test('not equal', function (t) {
13 t.notOk(equal(
14 { x : 5, y : [6] },
15 { x : 5, y : 6 }
16 ));
17 t.end();
18});
19
20test('nested nulls', function (t) {
21 t.ok(equal([ null, null, null ], [ null, null, null ]));
22 t.end();
23});
Note: See TracBrowser for help on using the repository browser.