summaryrefslogtreecommitdiff
path: root/cli/tests/unit/command_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/command_test.ts')
-rw-r--r--cli/tests/unit/command_test.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/unit/command_test.ts b/cli/tests/unit/command_test.ts
index d58053c84..2a0562c93 100644
--- a/cli/tests/unit/command_test.ts
+++ b/cli/tests/unit/command_test.ts
@@ -91,6 +91,7 @@ Deno.test(
"await Deno.stdout.write(new TextEncoder().encode('hello'))",
],
stderr: "null",
+ stdout: "piped",
});
const child = command.spawn();
@@ -124,6 +125,7 @@ Deno.test(
"await Deno.stderr.write(new TextEncoder().encode('hello'))",
],
stdout: "null",
+ stderr: "piped",
});
const child = command.spawn();
@@ -163,6 +165,8 @@ Deno.test(
"eval",
"Deno.stderr.write(new TextEncoder().encode('error\\n')); Deno.stdout.write(new TextEncoder().encode('output\\n'));",
],
+ stdout: "piped",
+ stderr: "piped",
});
const child = command.spawn();
await child.stdout.pipeTo(file.writable, {