Skip to content

Commit 973365c

Browse files
committed
fix unhandledrejection event test
1 parent ba16917 commit 973365c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit-global/es.promise.constructor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ QUnit.skip('Unhandled rejection tracking', assert => {
184184
assert.same(it.reason, 42, 'addEventListener(unhandledrejection), reason');
185185
GLOBAL.removeEventListener('unhandledrejection', onunhandledrejection);
186186
}
187-
GLOBAL.addEventListener('rejectionhandled', onunhandledrejection);
187+
GLOBAL.addEventListener('unhandledrejection', onunhandledrejection);
188188
function onrejectionhandled(it) {
189189
assert.same(it.promise, $promise, 'addEventListener(rejectionhandled), promise');
190190
assert.same(it.reason, 42, 'addEventListener(rejectionhandled), reason');

0 commit comments

Comments
 (0)