summaryrefslogtreecommitdiff
path: root/cli/tests/unit/wasm_test.ts
diff options
context:
space:
mode:
authorLeo K <crowlkats@toaxl.com>2021-08-05 13:08:58 +0200
committerGitHub <noreply@github.com>2021-08-05 13:08:58 +0200
commit3f0cf9619fce71a8898c495501df4bdb0e07e735 (patch)
tree1b8af2c832f8344f9a39f55326d576eab63f447f /cli/tests/unit/wasm_test.ts
parent299c7cfe54cb184e0d0c18b00a154c953b433ebf (diff)
refactor(cli/tests): remove unnecessary void return types (#11577)
Diffstat (limited to 'cli/tests/unit/wasm_test.ts')
-rw-r--r--cli/tests/unit/wasm_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tests/unit/wasm_test.ts b/cli/tests/unit/wasm_test.ts
index 27391cbf2..66fcacade 100644
--- a/cli/tests/unit/wasm_test.ts
+++ b/cli/tests/unit/wasm_test.ts
@@ -22,7 +22,7 @@ const simpleWasm = new Uint8Array([
0x00, 0x20, 0x01, 0x6a, 0x0b
]);
-unitTest(async function wasmInstantiateWorksWithBuffer(): Promise<void> {
+unitTest(async function wasmInstantiateWorksWithBuffer() {
const { module, instance } = await WebAssembly.instantiate(simpleWasm);
assertEquals(WebAssembly.Module.exports(module), [{
name: "add",
@@ -38,7 +38,7 @@ unitTest(async function wasmInstantiateWorksWithBuffer(): Promise<void> {
// 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(
- async function wasmInstantiateStreamingFailsWithBuffer(): Promise<void> {
+ async function wasmInstantiateStreamingFailsWithBuffer() {
await assertThrowsAsync(async () => {
await WebAssembly.instantiateStreaming(
// Bypassing the type system
@@ -48,7 +48,7 @@ unitTest(
},
);
-unitTest(async function wasmInstantiateStreaming(): Promise<void> {
+unitTest(async function wasmInstantiateStreaming() {
let isomorphic = "";
for (const byte of simpleWasm) {
isomorphic += String.fromCharCode(byte);
@@ -70,7 +70,7 @@ unitTest(async function wasmInstantiateStreaming(): Promise<void> {
unitTest(
{ perms: { net: true } },
- async function wasmStreamingNonTrivial(): Promise<void> {
+ async function wasmStreamingNonTrivial() {
// deno-dom's WASM file is a real-world non-trivial case that gave us
// trouble when implementing this.
await WebAssembly.instantiateStreaming(fetch(