main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
302 bytes
|
Rev | Line | |
---|
[d565449] | 1 | 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 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.