You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
229 B

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