diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-08-16 00:30:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-15 23:30:06 +0000 |
commit | b6c74aab240430fa70c057be825ce766d2314e02 (patch) | |
tree | 6e2b3f690411f41de77972339f4145d2c85b31b8 /tests/unit/tty_test.ts | |
parent | a58494483a2c618636697e05f9c799b03e405056 (diff) |
Revert "test: run unit tests with DENO_FUTURE=1 (#24400)" (#25060)
This reverts commit 22a834ff5b4b312b8f91be8991f2b495d49fad2f.
Appears this commit might have broken tests on `main`.
Diffstat (limited to 'tests/unit/tty_test.ts')
-rw-r--r-- | tests/unit/tty_test.ts | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/tests/unit/tty_test.ts b/tests/unit/tty_test.ts index 35e7dd783..0c1140804 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, DENO_FUTURE } from "./test_util.ts"; +import { assert } from "./test_util.ts"; // Note tests for Deno.stdin.setRaw is in integration tests. @@ -15,15 +15,12 @@ Deno.test(function consoleSize() { assert(typeof result.rows !== "undefined"); }); -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({ 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; |