install-nix-action/node_modules/object-inspect/test/circular.js
Domen Kožar 08403cd828
v5
2019-11-13 17:14:48 +01:00

10 lines
228 B
JavaScript

var inspect = require('../');
var test = require('tape');
test('circular', function (t) {
t.plan(1);
var obj = { a: 1, b: [3,4] };
obj.c = obj;
t.equal(inspect(obj), '{ a: 1, b: [ 3, 4 ], c: [Circular] }');
});