summaryrefslogtreecommitdiff
path: root/cli/tests/unit/wasm_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-11-23 17:45:18 +0100
committerGitHub <noreply@github.com>2021-11-23 17:45:18 +0100
commitbedb2adfb065c1b0d3bcb773fbeff91230402b6b (patch)
treeb4d90c36f2409f7f9b6247b74e9c111a38befcdf /cli/tests/unit/wasm_test.ts
parent51e3db956a5927229e3f46f4eaaf317e935f8f17 (diff)
refactor: remove "unitTest" wrapper from cli/tests/unit (#12750)
Diffstat (limited to 'cli/tests/unit/wasm_test.ts')
-rw-r--r--cli/tests/unit/wasm_test.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/tests/unit/wasm_test.ts b/cli/tests/unit/wasm_test.ts
index f687cd094..e1659b090 100644
--- a/cli/tests/unit/wasm_test.ts
+++ b/cli/tests/unit/wasm_test.ts
@@ -1,4 +1,4 @@
-import { assert, assertEquals, assertRejects, unitTest } from "./test_util.ts";
+import { assert, assertEquals, assertRejects } from "./test_util.ts";
// The following blob can be created by taking the following s-expr and pass
// it through wat2wasm.
@@ -17,7 +17,7 @@ const simpleWasm = new Uint8Array([
0x00, 0x20, 0x01, 0x6a, 0x0b
]);
-unitTest(async function wasmInstantiateWorksWithBuffer() {
+Deno.test(async function wasmInstantiateWorksWithBuffer() {
const { module, instance } = await WebAssembly.instantiate(simpleWasm);
assertEquals(WebAssembly.Module.exports(module), [{
name: "add",
@@ -32,7 +32,7 @@ unitTest(async function wasmInstantiateWorksWithBuffer() {
// V8's default implementation of `WebAssembly.instantiateStreaming()` if you
// don't set the WASM streaming callback, is to take a byte source. Here we
// check that our implementation of the callback disallows it.
-unitTest(
+Deno.test(
async function wasmInstantiateStreamingFailsWithBuffer() {
await assertRejects(async () => {
await WebAssembly.instantiateStreaming(
@@ -43,7 +43,7 @@ unitTest(
},
);
-unitTest(
+Deno.test(
async function wasmInstantiateStreamingNoContentType() {
await assertRejects(
async () => {
@@ -56,7 +56,7 @@ unitTest(
},
);
-unitTest(async function wasmInstantiateStreaming() {
+Deno.test(async function wasmInstantiateStreaming() {
let isomorphic = "";
for (const byte of simpleWasm) {
isomorphic += String.fromCharCode(byte);
@@ -76,7 +76,7 @@ unitTest(async function wasmInstantiateStreaming() {
assertEquals(add(1, 3), 4);
});
-unitTest(
+Deno.test(
{ permissions: { net: true } },
async function wasmStreamingNonTrivial() {
// deno-dom's WASM file is a real-world non-trivial case that gave us