1 |
3a515b92
|
cagy
|
var inspect = require('../');
|
2 |
|
|
var test = require('tape');
|
3 |
|
|
|
4 |
|
|
test('deep', function (t) {
|
5 |
|
|
t.plan(2);
|
6 |
|
|
var obj = [[[[[[500]]]]]];
|
7 |
|
|
t.equal(inspect(obj), '[ [ [ [ [ [Object] ] ] ] ] ]');
|
8 |
|
|
t.equal(inspect(obj, { depth: 2 }), '[ [ [Object] ] ]');
|
9 |
|
|
});
|