Files
Chatapp/Backend/node_modules/object-inspect/test/undef.js
T
francesco448 0a448b1250 first commit
2026-03-14 14:59:41 +01:00

13 lines
313 B
JavaScript

var test = require('tape');
var inspect = require('object-inspect');
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 }'
);
});