summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/run/rejection_handled.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/run/rejection_handled.ts')
-rw-r--r--cli/tests/testdata/run/rejection_handled.ts17
1 files changed, 0 insertions, 17 deletions
diff --git a/cli/tests/testdata/run/rejection_handled.ts b/cli/tests/testdata/run/rejection_handled.ts
deleted file mode 100644
index f058ff966..000000000
--- a/cli/tests/testdata/run/rejection_handled.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-window.addEventListener("unhandledrejection", (event) => {
- console.log("unhandledrejection", event.reason, event.promise);
- event.preventDefault();
-});
-
-window.addEventListener("rejectionhandled", (event) => {
- console.log("rejectionhandled", event.reason, event.promise);
-});
-
-const a = Promise.reject(1);
-setTimeout(async () => {
- a.catch(() => console.log("Added catch handler to the promise"));
-}, 10);
-
-setTimeout(() => {
- console.log("Success");
-}, 50);