summaryrefslogtreecommitdiff
path: root/std/examples/tests/cat_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/examples/tests/cat_test.ts')
-rw-r--r--std/examples/tests/cat_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/examples/tests/cat_test.ts b/std/examples/tests/cat_test.ts
index 93e884f61..34b60bc5d 100644
--- a/std/examples/tests/cat_test.ts
+++ b/std/examples/tests/cat_test.ts
@@ -16,7 +16,7 @@ Deno.test("[examples/cat] print multiple files", async () => {
});
try {
- const output = await Deno.readAll(process.stdout!);
+ const output = await process.output();
const actual = decoder.decode(output).trim();
assertStrictEq(actual, "Hello\nWorld");
} finally {