Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Feb 2, 2016
2 parents 4a3ac9c + 7f5f443 commit e43ca2a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/nested.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,10 @@ test('repeated non-cyclic value', function(t) {
var two = { a: one, b: one };
t.equal(stringify(two), '{"a":{"x":1},"b":{"x":1}}');
});

test('acyclic but with reused obj-property pointers', function (t) {
t.plan(1);
var x = { a: 1 }
var y = { b: x, c: x }
t.equal(stringify(y), '{"b":{"a":1},"c":{"a":1}}');
});

0 comments on commit e43ca2a

Please sign in to comment.