Skip to content

Commit 4f62cca

Browse files
committed
Make fake error id more recognizable
1 parent bc0e12f commit 4f62cca

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/unhandledRejection-test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ buster.testCase('unhandledRejection', {
55

66
'should not fail if JSON.stringify throws': function() {
77
var fixture = unhandledRejection({});
8-
var circle = {};
8+
var circle = { self: void 0 };
99
circle.self = circle;
1010

1111
buster.refute.exception(function() {
12-
fixture.onPotentiallyUnhandledRejection({ handled: false, value: circle });
12+
fixture.onPotentiallyUnhandledRejection({
13+
id: 'JSON.stringify circular ref test',
14+
handled: false,
15+
value: circle
16+
});
1317
});
1418
}
1519

0 commit comments

Comments
 (0)