From 858abbe745aa8188654120d4999ab983b014c197 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Tue, 2 Apr 2024 12:57:05 +1100 Subject: chore: update `std` submodule to 0.221.0 (#23112) --- tests/unit/blob_test.ts | 2 +- tests/unit/buffer_test.ts | 2 +- tests/unit/files_test.ts | 2 +- tests/unit/tls_test.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/unit') diff --git a/tests/unit/blob_test.ts b/tests/unit/blob_test.ts index 8be6b5d46..b05b5fb7c 100644 --- a/tests/unit/blob_test.ts +++ b/tests/unit/blob_test.ts @@ -85,7 +85,7 @@ Deno.test(async function blobStream() { const read = async (): Promise => { const { done, value } = await reader.read(); if (!done && value) { - bytes = concat(bytes, value); + bytes = concat([bytes, value]); return read(); } }; diff --git a/tests/unit/buffer_test.ts b/tests/unit/buffer_test.ts index 06fbef350..88c867c0a 100644 --- a/tests/unit/buffer_test.ts +++ b/tests/unit/buffer_test.ts @@ -11,7 +11,7 @@ import { assertRejects, assertThrows, } from "./test_util.ts"; -import { writeAllSync } from "../util/std/streams/write_all.ts"; +import { writeAllSync } from "../util/std/io/write_all.ts"; const MAX_SIZE = 2 ** 32 - 2; // N controls how many iterations of certain checks are performed. diff --git a/tests/unit/files_test.ts b/tests/unit/files_test.ts index 0034a8472..b25b2fd5d 100644 --- a/tests/unit/files_test.ts +++ b/tests/unit/files_test.ts @@ -8,7 +8,7 @@ import { assertRejects, assertThrows, } from "./test_util.ts"; -import { copy } from "@std/streams/copy.ts"; +import { copy } from "@std/io/copy.ts"; // Note tests for Deno.FsFile.setRaw is in integration tests. diff --git a/tests/unit/tls_test.ts b/tests/unit/tls_test.ts index 1ac5e8d98..05fa904b2 100644 --- a/tests/unit/tls_test.ts +++ b/tests/unit/tls_test.ts @@ -8,8 +8,8 @@ import { assertThrows, } from "./test_util.ts"; import { BufReader, BufWriter } from "@std/io/mod.ts"; -import { readAll } from "@std/streams/read_all.ts"; -import { writeAll } from "@std/streams/write_all.ts"; +import { readAll } from "@std/io/read_all.ts"; +import { writeAll } from "@std/io/write_all.ts"; import { TextProtoReader } from "../testdata/run/textproto.ts"; const encoder = new TextEncoder(); -- cgit v1.2.3