undef.js 302 B

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