summaryrefslogtreecommitdiff
path: root/tests/unit/tty_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-08-26 22:58:28 +0100
committerGitHub <noreply@github.com>2024-08-26 23:58:28 +0200
commitba58628601057c6f996cbad287fcfbe353872368 (patch)
tree5642806d3aed1d46eab233511ef8a929cf0c51d3 /tests/unit/tty_test.ts
parent631d931973fbb7d2e01e1aeb87a33dd9d63ec38e (diff)
Reland "test: run unit tests with DENO_FUTURE=1" (#25212)
Reverted in https://github.com/denoland/deno/pull/25060
Diffstat (limited to 'tests/unit/tty_test.ts')
-rw-r--r--tests/unit/tty_test.ts17
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/unit/tty_test.ts b/tests/unit/tty_test.ts
index 0c1140804..35e7dd783 100644
--- a/tests/unit/tty_test.ts
+++ b/tests/unit/tty_test.ts
@@ -2,7 +2,7 @@
// deno-lint-ignore-file no-deprecated-deno-api
-import { assert } from "./test_util.ts";
+import { assert, DENO_FUTURE } from "./test_util.ts";
// Note tests for Deno.stdin.setRaw is in integration tests.
@@ -15,12 +15,15 @@ Deno.test(function consoleSize() {
assert(typeof result.rows !== "undefined");
});
-Deno.test({ permissions: { read: true } }, function isatty() {
- // CI not under TTY, so cannot test stdin/stdout/stderr.
- const f = Deno.openSync("tests/testdata/assets/hello.txt");
- assert(!Deno.isatty(f.rid));
- f.close();
-});
+Deno.test(
+ { ignore: DENO_FUTURE, permissions: { read: true } },
+ function isatty() {
+ // CI not under TTY, so cannot test stdin/stdout/stderr.
+ const f = Deno.openSync("tests/testdata/assets/hello.txt");
+ assert(!Deno.isatty(f.rid));
+ f.close();
+ },
+);
Deno.test(function isattyError() {
let caught = false;