From d17b3906bf3a0871d54e9fdc009891e378dc45f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 20 Jul 2022 16:56:53 +0200 Subject: chore: use import.meta.resolve() in tests (#15256) --- cli/tests/unit/wasm_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tests/unit/wasm_test.ts') 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), [{ -- cgit v1.2.3