diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-04 18:12:11 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 18:12:11 +1000 |
commit | ac33fc2892f8faf9484c31c2aabfdc3744de0314 (patch) | |
tree | 4eb9f66a2e7e93c512d6aff17fb672b6203af9b4 /tests/unit/tty_test.ts | |
parent | cb454351d497a4387775f3c9d64114cb8b32c08d (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.ts | 2 |
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; |