summaryrefslogtreecommitdiff
path: root/tests/unit/tty_test.ts
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-09-04 18:12:11 +1000
committerGitHub <noreply@github.com>2024-09-04 18:12:11 +1000
commitac33fc2892f8faf9484c31c2aabfdc3744de0314 (patch)
tree4eb9f66a2e7e93c512d6aff17fb672b6203af9b4 /tests/unit/tty_test.ts
parentcb454351d497a4387775f3c9d64114cb8b32c08d (diff)
chore(tty): soft-remove `Deno.isatty()` (#25410)
Towards #22079
Diffstat (limited to 'tests/unit/tty_test.ts')
-rw-r--r--tests/unit/tty_test.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/tty_test.ts b/tests/unit/tty_test.ts
index 35e7dd783..4183fe530 100644
--- a/tests/unit/tty_test.ts
+++ b/tests/unit/tty_test.ts
@@ -20,6 +20,7 @@ Deno.test(
function isatty() {
// CI not under TTY, so cannot test stdin/stdout/stderr.
const f = Deno.openSync("tests/testdata/assets/hello.txt");
+ // @ts-ignore `Deno.isatty()` was soft-removed in Deno 2.
assert(!Deno.isatty(f.rid));
f.close();
},
@@ -29,6 +30,7 @@ Deno.test(function isattyError() {
let caught = false;
try {
// Absurdly large rid.
+ // @ts-ignore `Deno.isatty()` was soft-removed in Deno 2.
Deno.isatty(0x7fffffff);
} catch (e) {
caught = true;