diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-01-25 01:59:55 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 15:59:55 +0100 |
commit | 62786cfebb5c9fe36d0930582951f442bdfe9441 (patch) | |
tree | a1bede5492a5b1bf4a202ee8994df027f098e788 /cli/tests/unit_node/tty_test.ts | |
parent | 4af121687cb4c26f4a2f3e4ad266490d8faa3d2d (diff) |
feat: deprecate `Deno.close()` (#22066)
For removal in Deno v2.
---------
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tests/unit_node/tty_test.ts')
-rw-r--r-- | cli/tests/unit_node/tty_test.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/tests/unit_node/tty_test.ts b/cli/tests/unit_node/tty_test.ts index 8e2f66f9e..f72eb088b 100644 --- a/cli/tests/unit_node/tty_test.ts +++ b/cli/tests/unit_node/tty_test.ts @@ -10,9 +10,8 @@ Deno.test("[node/tty isatty] returns true when fd is a tty, false otherwise", () assert(Deno.stdout.isTerminal() === isatty(Deno.stdout.rid)); assert(Deno.stderr.isTerminal() === isatty(Deno.stderr.rid)); - const file = Deno.openSync("README.md"); + using file = Deno.openSync("README.md"); assert(!isatty(file.rid)); - Deno.close(file.rid); }); Deno.test("[node/tty isatty] returns false for irrelevant values", () => { |