diff options
Diffstat (limited to 'cli/tests/stdout_write_all.ts')
-rw-r--r-- | cli/tests/stdout_write_all.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/stdout_write_all.ts b/cli/tests/stdout_write_all.ts new file mode 100644 index 000000000..c82a0ca7d --- /dev/null +++ b/cli/tests/stdout_write_all.ts @@ -0,0 +1,8 @@ +const encoder = new TextEncoder(); +const pending = [ + Deno.stdout.write(encoder.encode("done\n")), + Deno.stdout.write(encoder.encode("done\n")), +]; + +await Promise.all(pending); +await Deno.stdout.write(encoder.encode("complete\n")); |