summaryrefslogtreecommitdiff
path: root/cli/tests/unit_node/tty_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit_node/tty_test.ts')
-rw-r--r--cli/tests/unit_node/tty_test.ts3
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", () => {