summaryrefslogtreecommitdiff
path: root/cli/tests/unit/wasm_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-07-20 16:56:53 +0200
committerGitHub <noreply@github.com>2022-07-20 16:56:53 +0200
commitd17b3906bf3a0871d54e9fdc009891e378dc45f5 (patch)
tree446551bf2f53908d01a4a9b6d35905065369068b /cli/tests/unit/wasm_test.ts
parent73504d76b29eddc1a563e74bb379682e23347b3c (diff)
chore: use import.meta.resolve() in tests (#15256)
Diffstat (limited to 'cli/tests/unit/wasm_test.ts')
-rw-r--r--cli/tests/unit/wasm_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/unit/wasm_test.ts b/cli/tests/unit/wasm_test.ts
index 1b31249d4..2bf0a7480 100644
--- a/cli/tests/unit/wasm_test.ts
+++ b/cli/tests/unit/wasm_test.ts
@@ -79,8 +79,8 @@ Deno.test(async function wasmInstantiateStreaming() {
Deno.test(
{ permissions: { read: true } },
async function wasmFileStreaming() {
- const url = new URL("../testdata/unreachable.wasm", import.meta.url);
- assert(url.href.startsWith("file://"));
+ const url = import.meta.resolve("../testdata/unreachable.wasm");
+ assert(url.startsWith("file://"));
const { module } = await WebAssembly.instantiateStreaming(fetch(url));
assertEquals(WebAssembly.Module.exports(module), [{