diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-07-20 16:56:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-20 16:56:53 +0200 |
commit | d17b3906bf3a0871d54e9fdc009891e378dc45f5 (patch) | |
tree | 446551bf2f53908d01a4a9b6d35905065369068b /cli/tests/unit/broadcast_channel_test.ts | |
parent | 73504d76b29eddc1a563e74bb379682e23347b3c (diff) |
chore: use import.meta.resolve() in tests (#15256)
Diffstat (limited to 'cli/tests/unit/broadcast_channel_test.ts')
-rw-r--r-- | cli/tests/unit/broadcast_channel_test.ts | 5 |
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(); |