diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-04-05 15:57:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-05 15:57:52 +0200 |
commit | 284e6c303956e8ca20af63b4ecc045438a260fe6 (patch) | |
tree | d263ee837d30590e19fe7d0bf0295ca40b75f6ea /cli/tests/unit/blob_test.ts | |
parent | ac84eff9406c7173678f5faa1851027db96a424b (diff) |
chore: update std submodule (#10017)
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> { |