|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
400 bytes
|
| Line | |
|---|
| 1 | var inspect = require('../');
|
|---|
| 2 | var test = require('tape');
|
|---|
| 3 |
|
|---|
| 4 | test('deep', function (t) {
|
|---|
| 5 | t.plan(4);
|
|---|
| 6 | var obj = [[[[[[500]]]]]];
|
|---|
| 7 | t.equal(inspect(obj), '[ [ [ [ [ [Array] ] ] ] ] ]');
|
|---|
| 8 | t.equal(inspect(obj, { depth: 4 }), '[ [ [ [ [Array] ] ] ] ]');
|
|---|
| 9 | t.equal(inspect(obj, { depth: 2 }), '[ [ [Array] ] ]');
|
|---|
| 10 |
|
|---|
| 11 | t.equal(inspect([[[{ a: 1 }]]], { depth: 3 }), '[ [ [ [Object] ] ] ]');
|
|---|
| 12 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.