summaryrefslogtreecommitdiff
path: root/tests/testdata/run/unstable_cron.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/run/unstable_cron.js')
-rw-r--r--tests/testdata/run/unstable_cron.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/testdata/run/unstable_cron.js b/tests/testdata/run/unstable_cron.js
deleted file mode 100644
index 3114f6e55..000000000
--- a/tests/testdata/run/unstable_cron.js
+++ /dev/null
@@ -1,10 +0,0 @@
-const scope = import.meta.url.slice(-7) === "#worker" ? "worker" : "main";
-
-console.log(scope, Deno.cron);
-
-if (scope === "worker") {
- postMessage("done");
-} else {
- const worker = new Worker(`${import.meta.url}#worker`, { type: "module" });
- worker.onmessage = () => Deno.exit(0);
-}