Welcome to mirror list, hosted at ThFree Co, Russian Federation.

undef.js « test « object-inspect « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e3f4961229c249a1d4f242d415b5193fc0ad5056 (plain)
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 }'
    );
});