summaryrefslogtreecommitdiff
path: root/cli/js/tests/process_test.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-04-28 17:40:43 +0100
committerGitHub <noreply@github.com>2020-04-28 12:40:43 -0400
commit678313b17677e012ba9a07aeca58af1aafbf4e8c (patch)
treee48e25b165a7d6d566095442448f2e36fa09c561 /cli/js/tests/process_test.ts
parent47c2f034e95696a47770d60aec1362501e7f330d (diff)
BREAKING: Remove Deno.EOF, use null instead (#4953)
Diffstat (limited to 'cli/js/tests/process_test.ts')
-rw-r--r--cli/js/tests/process_test.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/cli/js/tests/process_test.ts b/cli/js/tests/process_test.ts
index f0615193b..b70ce8307 100644
--- a/cli/js/tests/process_test.ts
+++ b/cli/js/tests/process_test.ts
@@ -154,14 +154,14 @@ unitTest({ perms: { run: true } }, async function runStdoutPiped(): Promise<
const data = new Uint8Array(10);
let r = await p.stdout!.read(data);
- if (r === Deno.EOF) {
- throw new Error("p.stdout.read(...) should not be EOF");
+ if (r === null) {
+ throw new Error("p.stdout.read(...) should not be null");
}
assertEquals(r, 5);
const s = new TextDecoder().decode(data.subarray(0, r));
assertEquals(s, "hello");
r = await p.stdout!.read(data);
- assertEquals(r, Deno.EOF);
+ assertEquals(r, null);
p.stdout!.close();
const status = await p.status();
@@ -183,14 +183,14 @@ unitTest({ perms: { run: true } }, async function runStderrPiped(): Promise<
const data = new Uint8Array(10);
let r = await p.stderr!.read(data);
- if (r === Deno.EOF) {
- throw new Error("p.stderr.read should not return EOF here");
+ if (r === null) {
+ throw new Error("p.stderr.read should not return null here");
}
assertEquals(r, 5);
const s = new TextDecoder().decode(data.subarray(0, r));
assertEquals(s, "hello");
r = await p.stderr!.read(data);
- assertEquals(r, Deno.EOF);
+ assertEquals(r, null);
p.stderr!.close();
const status = await p.status();
@@ -313,7 +313,7 @@ unitTest({ perms: { run: true } }, async function runClose(): Promise<void> {
const data = new Uint8Array(10);
const r = await p.stderr!.read(data);
- assertEquals(r, Deno.EOF);
+ assertEquals(r, null);
p.stderr!.close();
});