summaryrefslogtreecommitdiff
path: root/std/textproto/test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-06-06 10:37:52 -0400
committerGitHub <noreply@github.com>2020-06-06 10:37:52 -0400
commit1a2f88609b3e1bc27790c77331ac96b423625eb6 (patch)
treed950e2cb4aaafc459b16d4f9333b2c29d7adbcc4 /std/textproto/test.ts
parent78333f0ab3614e8dbd3dfdc95e9dbb53f80ffe5d (diff)
fix(std/io): StringReader implementation (#6148)
Diffstat (limited to 'std/textproto/test.ts')
-rw-r--r--std/textproto/test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/textproto/test.ts b/std/textproto/test.ts
index ec66bfd8c..7539e9779 100644
--- a/std/textproto/test.ts
+++ b/std/textproto/test.ts
@@ -5,12 +5,12 @@
import { BufReader } from "../io/bufio.ts";
import { TextProtoReader } from "./mod.ts";
-import { stringsReader } from "../io/util.ts";
+import { StringReader } from "../io/readers.ts";
import { assert, assertEquals, assertThrows } from "../testing/asserts.ts";
const { test } = Deno;
function reader(s: string): TextProtoReader {
- return new TextProtoReader(new BufReader(stringsReader(s)));
+ return new TextProtoReader(new BufReader(new StringReader(s)));
}
test({
@@ -187,7 +187,7 @@ test({
const input = "abcdefghijklmnopqrstuvwxyz";
const bufSize = 25;
const tp = new TextProtoReader(
- new BufReader(stringsReader(input), bufSize)
+ new BufReader(new StringReader(input), bufSize)
);
const line = await tp.readLine();
assertEquals(line, input);