Sign in
apache
/
cordova-js
/
refs/heads/cb-4.2.3-node-modules-for-coho-only
/
.
/
node_modules
/
json-stable-stringify
/
test
/
nested.js
blob: 43459f2b806d94ab7490c55aee228b0111aa3aa2 [
file
] [
log
] [
blame
]
var
test
=
require
(
'tape'
);
var
stringify
=
require
(
'../'
);
test
(
'nested'
,
function
(
t
)
{
t
.
plan
(
1
);
var
obj
=
{
c
:
8
,
b
:
[{
z
:
6
,
y
:
5
,
x
:
4
},
7
],
a
:
3
};
t
.
equal
(
stringify
(
obj
),
'{"a":3,"b":[{"x":4,"y":5,"z":6},7],"c":8}'
);
});