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, 2 insertions, 3 deletions
diff --git a/cli/tests/unit/broadcast_channel_test.ts b/cli/tests/unit/broadcast_channel_test.ts
index acdcd8afc..d56324cc0 100644
--- a/cli/tests/unit/broadcast_channel_test.ts
+++ b/cli/tests/unit/broadcast_channel_test.ts
@@ -6,11 +6,10 @@ Deno.test("broadcastchannel worker", async () => {
const intercom = new BroadcastChannel("intercom");
let count = 0;
- const url = new URL(
+ const url = import.meta.resolve(
"../testdata/workers/broadcast_channel.ts",
- import.meta.url,
);
- const worker = new Worker(url.href, { type: "module", name: "worker" });
+ const worker = new Worker(url, { type: "module", name: "worker" });
worker.onmessage = () => intercom.postMessage(++count);
const promise = deferred();