Urara-Blog/node_modules/.pnpm-store/v3/files/03/23705cf989d139dc03912bc5f72905a756948d263cb8ee1e451d00821cef07cc2f5a9399bb149fb2229da173dc4998a3a43e285939ce8799d358a7d8f23876
2022-08-14 01:14:53 +08:00

23 lines
446 B
Text

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();
});