diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/blob_test.ts | 6 | ||||
-rw-r--r-- | js/os_test.ts | 4 | ||||
-rw-r--r-- | js/process_test.ts | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/js/blob_test.ts b/js/blob_test.ts index 142554167..ed0f9d89c 100644 --- a/js/blob_test.ts +++ b/js/blob_test.ts @@ -1,14 +1,14 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assert, assertEqual } from "./test_util.ts"; -test(async function blobString() { +test(function blobString() { const b1 = new Blob(["Hello World"]); const str = "Test"; const b2 = new Blob([b1, str]); assertEqual(b2.size, b1.size + str.length); }); -test(async function blobBuffer() { +test(function blobBuffer() { const buffer = new ArrayBuffer(12); const u8 = new Uint8Array(buffer); const f1 = new Float32Array(buffer); @@ -18,7 +18,7 @@ test(async function blobBuffer() { assertEqual(b2.size, 3 * u8.length); }); -test(async function blobSlice() { +test(function blobSlice() { const blob = new Blob(["Deno", "Foo"]); const b1 = blob.slice(0, 3, "Text/HTML"); assert(b1 instanceof Blob); diff --git a/js/os_test.ts b/js/os_test.ts index 4b7ec4543..0284671e0 100644 --- a/js/os_test.ts +++ b/js/os_test.ts @@ -2,7 +2,7 @@ import { test, testPerm, assert, assertEqual } from "./test_util.ts"; import * as deno from "deno"; -testPerm({ env: true }, async function envSuccess() { +testPerm({ env: true }, function envSuccess() { const env = deno.env(); assert(env !== null); env.test_var = "Hello World"; @@ -10,7 +10,7 @@ testPerm({ env: true }, async function envSuccess() { assertEqual(env.test_var, newEnv.test_var); }); -test(async function envFailure() { +test(function envFailure() { let caughtError = false; try { const env = deno.env(); diff --git a/js/process_test.ts b/js/process_test.ts index ca2a4a64a..8c6271985 100644 --- a/js/process_test.ts +++ b/js/process_test.ts @@ -3,7 +3,7 @@ import { test, testPerm, assert, assertEqual } from "./test_util.ts"; import { run, DenoError, ErrorKind } from "deno"; import * as deno from "deno"; -test(async function runPermissions() { +test(function runPermissions() { let caughtError = false; try { deno.run({ args: ["python", "-c", "print('hello world')"] }); @@ -52,7 +52,7 @@ testPerm({ run: true }, async function runCommandFailedWithSignal() { p.close(); }); -testPerm({ run: true }, async function runNotFound() { +testPerm({ run: true }, function runNotFound() { let error; try { run({ args: ["this file hopefully doesn't exist"] }); |