summaryrefslogtreecommitdiff
path: root/std/examples/tests/colors_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/examples/tests/colors_test.ts')
-rw-r--r--std/examples/tests/colors_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/examples/tests/colors_test.ts b/std/examples/tests/colors_test.ts
index dcb485f6c..e01e4d558 100644
--- a/std/examples/tests/colors_test.ts
+++ b/std/examples/tests/colors_test.ts
@@ -9,7 +9,7 @@ Deno.test("[examples/colors] print a colored text", async () => {
stdout: "piped"
});
try {
- const output = await Deno.readAll(process.stdout!);
+ const output = await process.output();
const actual = decoder.decode(output).trim();
const expected = "Hello world!";
assertStrictEq(actual, expected);