diff options
Diffstat (limited to 'cli/tests/unit/body_test.ts')
-rw-r--r-- | cli/tests/unit/body_test.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/tests/unit/body_test.ts b/cli/tests/unit/body_test.ts index 1c12c5eda..a95487aa4 100644 --- a/cli/tests/unit/body_test.ts +++ b/cli/tests/unit/body_test.ts @@ -1,5 +1,5 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. -import { assert, assertEquals, unitTest } from "./test_util.ts"; +import { assert, assertEquals } from "./test_util.ts"; // just a hack to get a body object // deno-lint-ignore no-explicit-any @@ -23,7 +23,7 @@ const intArrays = [ Float32Array, Float64Array, ]; -unitTest(async function arrayBufferFromByteArrays() { +Deno.test(async function arrayBufferFromByteArrays() { const buffer = new TextEncoder().encode("ahoyhoy8").buffer; for (const type of intArrays) { @@ -34,7 +34,7 @@ unitTest(async function arrayBufferFromByteArrays() { }); //FormData -unitTest( +Deno.test( { permissions: { net: true } }, async function bodyMultipartFormData() { const response = await fetch( @@ -53,7 +53,7 @@ unitTest( }, ); -unitTest( +Deno.test( { permissions: { net: true } }, async function bodyURLEncodedFormData() { const response = await fetch( @@ -73,14 +73,14 @@ unitTest( }, ); -unitTest({ permissions: {} }, async function bodyURLSearchParams() { +Deno.test({ permissions: {} }, async function bodyURLSearchParams() { const body = buildBody(new URLSearchParams({ hello: "world" })); const text = await body.text(); assertEquals(text, "hello=world"); }); -unitTest(async function bodyArrayBufferMultipleParts() { +Deno.test(async function bodyArrayBufferMultipleParts() { const parts: Uint8Array[] = []; let size = 0; for (let i = 0; i <= 150000; i++) { |