Skip to content

Commit

Permalink
Make fake error id more recognizable
Browse files Browse the repository at this point in the history
  • Loading branch information
briancavalier committed Aug 5, 2014
1 parent bc0e12f commit 4f62cca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/unhandledRejection-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ buster.testCase('unhandledRejection', {

'should not fail if JSON.stringify throws': function() {
var fixture = unhandledRejection({});
var circle = {};
var circle = { self: void 0 };
circle.self = circle;

buster.refute.exception(function() {
fixture.onPotentiallyUnhandledRejection({ handled: false, value: circle });
fixture.onPotentiallyUnhandledRejection({
id: 'JSON.stringify circular ref test',
handled: false,
value: circle
});
});
}

Expand Down

0 comments on commit 4f62cca

Please sign in to comment.