2020-08-25 23:57:08 +00:00
|
|
|
var inspect = require('../');
|
|
|
|
var test = require('tape');
|
|
|
|
|
|
|
|
test('deep', function (t) {
|
2021-02-26 03:58:33 +00:00
|
|
|
t.plan(3);
|
2020-08-25 23:57:08 +00:00
|
|
|
var obj = [[[[[[500]]]]]];
|
|
|
|
t.equal(inspect(obj), '[ [ [ [ [ [Array] ] ] ] ] ]');
|
2021-02-26 03:58:33 +00:00
|
|
|
t.equal(inspect(obj, { depth: 4 }), '[ [ [ [ [Array] ] ] ] ]');
|
2020-08-25 23:57:08 +00:00
|
|
|
t.equal(inspect(obj, { depth: 2 }), '[ [ [Array] ] ]');
|
|
|
|
});
|