Skip to content

Commit

Permalink
chore: update std in test util (#27892)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k authored and bartlomieju committed Feb 12, 2025
1 parent 452ce36 commit f43e121
Show file tree
Hide file tree
Showing 10 changed files with 1,247 additions and 351 deletions.
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

0 comments on commit f43e121

Please sign in to comment.