diff options
Diffstat (limited to 'school/node_modules/object-inspect/test/circular.js')
-rw-r--r-- | school/node_modules/object-inspect/test/circular.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/school/node_modules/object-inspect/test/circular.js b/school/node_modules/object-inspect/test/circular.js deleted file mode 100644 index 5df4233..0000000 --- a/school/node_modules/object-inspect/test/circular.js +++ /dev/null @@ -1,16 +0,0 @@ -var inspect = require('../'); -var test = require('tape'); - -test('circular', function (t) { - t.plan(2); - var obj = { a: 1, b: [3, 4] }; - obj.c = obj; - t.equal(inspect(obj), '{ a: 1, b: [ 3, 4 ], c: [Circular] }'); - - var double = {}; - double.a = [double]; - double.b = {}; - double.b.inner = double.b; - double.b.obj = double; - t.equal(inspect(double), '{ a: [ [Circular] ], b: { inner: [Circular], obj: [Circular] } }'); -}); |