diff options
author | 2023-01-31 17:55:16 -0800 | |
---|---|---|
committer | 2023-01-31 17:55:16 -0800 | |
commit | cc4326cd829decc95d1f1f23998f97705637e04b (patch) | |
tree | 9ccaa829b6d48af521d5e5fcdbabc0dac8d186af /test/bun.js/spawn-streaming-stdin.test.ts | |
parent | c57b37d29f9d04780c7f7917789cf8b424710d23 (diff) | |
download | bun-cc4326cd829decc95d1f1f23998f97705637e04b.tar.gz bun-cc4326cd829decc95d1f1f23998f97705637e04b.tar.zst bun-cc4326cd829decc95d1f1f23998f97705637e04b.zip |
Re-run prettier after changes
Diffstat (limited to 'test/bun.js/spawn-streaming-stdin.test.ts')
-rw-r--r-- | test/bun.js/spawn-streaming-stdin.test.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/bun.js/spawn-streaming-stdin.test.ts b/test/bun.js/spawn-streaming-stdin.test.ts index a71a0e2a9..74bf3dbc9 100644 --- a/test/bun.js/spawn-streaming-stdin.test.ts +++ b/test/bun.js/spawn-streaming-stdin.test.ts @@ -38,7 +38,7 @@ test("spawn can write to stdin multiple chunks", async () => { while (true) { proc.stdin.write("Wrote to stdin!\n"); inCounter++; - await new Promise((resolve) => setTimeout(resolve, 8)); + await new Promise(resolve => setTimeout(resolve, 8)); if (inCounter === 4) break; } @@ -46,9 +46,7 @@ test("spawn can write to stdin multiple chunks", async () => { })(); await Promise.all([prom, prom2]); - expect(Buffer.concat(chunks).toString().trim()).toBe( - "Wrote to stdin!\n".repeat(4).trim(), - ); + expect(Buffer.concat(chunks).toString().trim()).toBe("Wrote to stdin!\n".repeat(4).trim()); await proc.exited; })(); } |