summaryrefslogtreecommitdiff
path: root/cli/tests/unit/broadcast_channel_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/broadcast_channel_test.ts')
-rw-r--r--cli/tests/unit/broadcast_channel_test.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/tests/unit/broadcast_channel_test.ts b/cli/tests/unit/broadcast_channel_test.ts
index cfa62c856..33a8aaba0 100644
--- a/cli/tests/unit/broadcast_channel_test.ts
+++ b/cli/tests/unit/broadcast_channel_test.ts
@@ -6,7 +6,10 @@ Deno.test("broadcastchannel worker", async () => {
const intercom = new BroadcastChannel("intercom");
let count = 0;
- const url = new URL("../workers/broadcast_channel.ts", import.meta.url);
+ const url = new URL(
+ "../testdata/workers/broadcast_channel.ts",
+ import.meta.url,
+ );
const worker = new Worker(url.href, { type: "module", name: "worker" });
worker.onmessage = () => intercom.postMessage(++count);