Sign in
cobalt
/
cobalt
/
5864f47b864e8bb7b417f15981009ad93bdff2ac
/
.
/
third_party
/
devtools
/
node_modules
/
object-inspect
/
test
/
circular.js
blob: 28598a7fdc029520410b0cc30383089db954024c [
file
] [
log
] [
blame
]
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] }'
);
});