diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-04-28 17:40:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-28 12:40:43 -0400 |
| commit | 678313b17677e012ba9a07aeca58af1aafbf4e8c (patch) | |
| tree | e48e25b165a7d6d566095442448f2e36fa09c561 /cli/js/tests/tls_test.ts | |
| parent | 47c2f034e95696a47770d60aec1362501e7f330d (diff) | |
BREAKING: Remove Deno.EOF, use null instead (#4953)
Diffstat (limited to 'cli/js/tests/tls_test.ts')
| -rw-r--r-- | cli/js/tests/tls_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/js/tests/tls_test.ts b/cli/js/tests/tls_test.ts index ce44beac0..b971ccf5c 100644 --- a/cli/js/tests/tls_test.ts +++ b/cli/js/tests/tls_test.ts @@ -191,7 +191,7 @@ unitTest( await w.flush(); const tpr = new TextProtoReader(r); const statusLine = await tpr.readLine(); - assert(statusLine !== Deno.EOF, `line must be read: ${String(statusLine)}`); + assert(statusLine !== null, `line must be read: ${String(statusLine)}`); const m = statusLine.match(/^(.+?) (.+?) (.+?)$/); assert(m !== null, "must be matched"); const [_, proto, status, ok] = m; @@ -199,7 +199,7 @@ unitTest( assertEquals(status, "200"); assertEquals(ok, "OK"); const headers = await tpr.readMIMEHeader(); - assert(headers !== Deno.EOF); + assert(headers !== null); const contentLength = parseInt(headers.get("content-length")!); const bodyBuf = new Uint8Array(contentLength); await r.readFull(bodyBuf); @@ -225,7 +225,7 @@ unitTest( let writer = new BufWriter(conn); let reader = new TextProtoReader(new BufReader(conn)); - let line: string | Deno.EOF = (await reader.readLine()) as string; + let line: string | null = (await reader.readLine()) as string; assert(line.startsWith("220")); await writer.write(encoder.encode(`EHLO ${hostname}\r\n`)); |
