From 284e6c303956e8ca20af63b4ecc045438a260fe6 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 5 Apr 2021 15:57:52 +0200 Subject: chore: update std submodule (#10017) --- cli/tests/unit/blob_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tests/unit/blob_test.ts') 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 { } }; await read(); - assertEquals(decode(bytes), "Hello World"); + const decoder = new TextDecoder(); + assertEquals(decoder.decode(bytes), "Hello World"); }); unitTest(async function blobArrayBuffer(): Promise { -- cgit v1.2.3