diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/unit/blob_test.ts | 4 | ||||
-rw-r--r-- | cli/tests/unit/response_test.ts | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/cli/tests/unit/blob_test.ts b/cli/tests/unit/blob_test.ts index a3a8e06fd..f9e506334 100644 --- a/cli/tests/unit/blob_test.ts +++ b/cli/tests/unit/blob_test.ts @@ -1,7 +1,6 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. import { assert, assertEquals, unitTest } from "./test_util.ts"; import { concat } from "../../../test_util/std/bytes/mod.ts"; -import { decode } from "../../../test_util/std/encoding/utf8.ts"; unitTest(function blobString(): void { const b1 = new Blob(["Hello World"]); @@ -91,7 +90,8 @@ unitTest(async function blobStream(): Promise<void> { } }; await read(); - assertEquals(decode(bytes), "Hello World"); + const decoder = new TextDecoder(); + assertEquals(decoder.decode(bytes), "Hello World"); }); unitTest(async function blobArrayBuffer(): Promise<void> { diff --git a/cli/tests/unit/response_test.ts b/cli/tests/unit/response_test.ts index 5a5f8fdff..096eefc6d 100644 --- a/cli/tests/unit/response_test.ts +++ b/cli/tests/unit/response_test.ts @@ -37,7 +37,8 @@ unitTest(async function responseBlob() { assertEquals(blob, new Blob([new Uint8Array([1, 2, 3])])); }); -unitTest(async function responseFormData() { +// TODO(lucacasonato): re-enable test once #10002 is fixed. +unitTest({ ignore: true }, async function responseFormData() { const input = new FormData(); input.append("hello", "world"); const response = new Response(input, { |