Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update std in test util #27892

Merged
merged 6 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
170 changes: 0 additions & 170 deletions tests/specs/run/tls_connecttls/textproto.ts

This file was deleted.

4 changes: 2 additions & 2 deletions tests/specs/run/tls_connecttls/tls_connecttls.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assert, assertEquals } from "@std/assert";
import { BufReader, BufWriter } from "@std/io";
import { TextProtoReader } from "./textproto.ts";
import { BufReader, BufWriter } from "../../../unit/test_util.ts";
import { TextProtoReader } from "../../../testdata/run/textproto.ts";

const encoder = new TextEncoder();
const decoder = new TextDecoder();
Expand Down
170 changes: 0 additions & 170 deletions tests/specs/run/tls_starttls/textproto.ts

This file was deleted.

5 changes: 2 additions & 3 deletions tests/specs/run/tls_starttls/tls_starttls.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { assert, assertEquals } from "@std/assert";
import { BufReader } from "@std/io/buf-reader";
import { BufWriter } from "@std/io/buf-writer";
import { TextProtoReader } from "./textproto.ts";
import { BufReader, BufWriter } from "../../../unit/test_util.ts";
import { TextProtoReader } from "../../../testdata/run/textproto.ts";

const encoder = new TextEncoder();
const decoder = new TextDecoder();
Expand Down
2 changes: 1 addition & 1 deletion tests/testdata/run/textproto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @module
*/

import type { BufReader, ReadLineResult } from "@std/io/buf-reader";
import type { BufReader, ReadLineResult } from "../../unit/test_util.ts";
import { concat } from "@std/bytes/concat";

// Constants created for DRY
Expand Down
4 changes: 3 additions & 1 deletion tests/unit/http_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@

// deno-lint-ignore-file no-deprecated-deno-api

import { Buffer, BufReader, BufWriter, type Reader } from "@std/io";
import { Buffer, type Reader } from "@std/io";
import { TextProtoReader } from "../testdata/run/textproto.ts";
import {
assert,
assertEquals,
assertRejects,
assertStrictEquals,
assertThrows,
BufReader,
BufWriter,
delay,
fail,
} from "./test_util.ts";
Expand Down
Loading