Urara-Blog/node_modules/.pnpm-store/v3/files/89/c8e73609696a6c3186079a1a9da7fed17725d0693bee0f9a63fc1e215d93fc395415c2514031fb85df0e21649c18737da23ce8affd16fd956fafa30da3a137
2022-08-14 01:14:53 +08:00

12 lines
400 B
Text

var inspect = require('../');
var test = require('tape');
test('deep', function (t) {
t.plan(4);
var obj = [[[[[[500]]]]]];
t.equal(inspect(obj), '[ [ [ [ [ [Array] ] ] ] ] ]');
t.equal(inspect(obj, { depth: 4 }), '[ [ [ [ [Array] ] ] ] ]');
t.equal(inspect(obj, { depth: 2 }), '[ [ [Array] ] ]');
t.equal(inspect([[[{ a: 1 }]]], { depth: 3 }), '[ [ [ [Object] ] ] ]');
});