diff options
Diffstat (limited to 'cli/tests/unit/blob_test.ts')
-rw-r--r-- | cli/tests/unit/blob_test.ts | 4 |
1 files changed, 2 insertions, 2 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> { |