aswi2020vldc-gitlab/templetes/node_modules/object-inspect/test/undef.js @ 56f6c6df
1 | 3a515b92 | cagy | var test = require('tape'); |
---|---|---|---|
2 | var inspect = require('../'); |
||
3 | |||
4 | var obj = { a: 1, b: [3, 4, undefined, null], c: undefined, d: null }; |
||
5 | |||
6 | test('undef and null', function (t) { |
||
7 | t.plan(1); |
||
8 | t.equal( |
||
9 | inspect(obj), |
||
10 | '{ a: 1, b: [ 3, 4, undefined, null ], c: undefined, d: null }' |
||
11 | );
|
||
12 | });
|