aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/bun.js')
-rw-r--r--test/bun.js/process-stdio.test.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/bun.js/process-stdio.test.ts b/test/bun.js/process-stdio.test.ts
index 886bf9dac..45db37d05 100644
--- a/test/bun.js/process-stdio.test.ts
+++ b/test/bun.js/process-stdio.test.ts
@@ -3,6 +3,12 @@ import { describe, expect, it, test } from "bun:test";
import { bunExe } from "bunExe";
import { isatty } from "tty";
+test("process.stdin", () => {
+ expect(process.stdin).toBeDefined();
+ expect(process.stdin.on("close", function() {})).toBe(process.stdin);
+ expect(process.stdin.once("end", function() {})).toBe(process.stdin);
+});
+
test("process.stdout", () => {
expect(process.stdout).toBeDefined();
expect(process.stdout.isTTY).toBe(isatty(1));