Skip to content

Commit

Permalink
Add test for sinonjs#1709
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick committed Jul 6, 2018
1 parent 8195a90 commit ea1429a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/issues/issues-test.js
Expand Up @@ -492,4 +492,20 @@ describe("issues", function () {
});

});

describe("#1709 - deepEqual fails on cyclic references", function () {
it("should not blow up", function () {
var spy = sinon.spy();

var firstObj = {};
firstObj.aKeyName = firstObj;

var secondObj = {};
secondObj.aKeyName = secondObj;

spy(firstObj);

sinon.assert.calledWith(spy, secondObj);
});
});
});

0 comments on commit ea1429a

Please sign in to comment.