qingyiay
2023-08-28 82a7eba143cc761b303b99889193f7aad2dc9d08
1
2
3
4
5
6
7
8
9
10
11
12
var test = require('tape');
var inspect = require('../');
 
var obj = { a: 1, b: [3, 4, undefined, null], c: undefined, d: null };
 
test('undef and null', function (t) {
    t.plan(1);
    t.equal(
        inspect(obj),
        '{ a: 1, b: [ 3, 4, undefined, null ], c: undefined, d: null }'
    );
});