summaryrefslogtreecommitdiff
path: root/textproto/reader_test.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-07-08 04:20:41 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-07-07 15:20:41 -0400
commit9a01d6455ec3cfa955967102f576cb542999321a (patch)
tree82a4ab5776a09432f23b9ed99a31306c884c833e /textproto/reader_test.ts
parent6a0858bd5d9d327ac7f46bee5f5b2fab642f2a3f (diff)
Upgrade to v0.11.0 (update Reader interface) (denoland/deno_std#527)
Original: https://github.com/denoland/deno_std/commit/3ea90d54f6dad4bcc3d32e63601096a6c0ff3ce4
Diffstat (limited to 'textproto/reader_test.ts')
-rw-r--r--textproto/reader_test.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/textproto/reader_test.ts b/textproto/reader_test.ts
index 2b81685a2..adfb0c962 100644
--- a/textproto/reader_test.ts
+++ b/textproto/reader_test.ts
@@ -3,7 +3,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-import { BufReader, EOF } from "../io/bufio.ts";
+import { BufReader } from "../io/bufio.ts";
import { TextProtoReader, ProtocolError } from "./mod.ts";
import { stringsReader } from "../io/util.ts";
import {
@@ -14,8 +14,8 @@ import {
} from "../testing/asserts.ts";
import { test, runIfMain } from "../testing/mod.ts";
-function assertNotEOF<T extends {}>(val: T | EOF): T {
- assertNotEquals(val, EOF);
+function assertNotEOF<T extends {}>(val: T | Deno.EOF): T {
+ assertNotEquals(val, Deno.EOF);
return val as T;
}
@@ -33,7 +33,7 @@ function reader(s: string): TextProtoReader {
test(async function textprotoReadEmpty(): Promise<void> {
const r = reader("");
const m = await r.readMIMEHeader();
- assertEquals(m, EOF);
+ assertEquals(m, Deno.EOF);
});
test(async function textprotoReader(): Promise<void> {
@@ -45,7 +45,7 @@ test(async function textprotoReader(): Promise<void> {
assertEquals(s, "line2");
s = await r.readLine();
- assert(s === EOF);
+ assert(s === Deno.EOF);
});
test({