UNPKG

hummus-recipe

Version:

A powerful PDF tool for NodeJS based on HummusJS

13 lines (10 loc) 304 B
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 }' ); });