Skip to content

Commit 494fa66

Browse files
committed
remove stray promise rejection
1 parent bcba32c commit 494fa66

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/browser/test/integration/suites/onunhandledrejection.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ describe("window.onunhandledrejection", function() {
7575
summary.events[0].exception.values[0].mechanism.type,
7676
"onunhandledrejection"
7777
);
78+
// even though it's a regular Event (rather than a PRE) it should sill only
79+
// come through this channel
80+
assert.equal(summary.events.length, 1);
7881
}
7982
});
8083
});
@@ -85,7 +88,6 @@ describe("window.onunhandledrejection", function() {
8588
return runInSandbox(sandbox, function() {
8689
if (supportsOnunhandledRejection()) {
8790
window.dispatchEvent(new Event("unhandledrejection"));
88-
Promise.reject();
8991
} else {
9092
window.resolveTest({ window: window });
9193
}
@@ -105,6 +107,9 @@ describe("window.onunhandledrejection", function() {
105107
summary.events[0].exception.values[0].mechanism.type,
106108
"onunhandledrejection"
107109
);
110+
// even though it's a regular Event (rather than a PRE) it should sill only
111+
// come through this channel
112+
assert.equal(summary.events.length, 1);
108113
}
109114
});
110115
});

0 commit comments

Comments
 (0)