deep.js 323 B

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