aswi2020vldc-gitlab/templetes/node_modules/object-inspect/test/deep.js @ 56f6c6df
1 |
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 |
});
|