summaryrefslogtreecommitdiff
path: root/cli/tests/unit/tty_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/tty_test.ts')
-rw-r--r--cli/tests/unit/tty_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/unit/tty_test.ts b/cli/tests/unit/tty_test.ts
index a9f1105f6..b45a43f1a 100644
--- a/cli/tests/unit/tty_test.ts
+++ b/cli/tests/unit/tty_test.ts
@@ -4,7 +4,7 @@ import { assert, assertThrows, unitTest } from "./test_util.ts";
// Note tests for Deno.setRaw is in integration tests.
unitTest({ perms: { read: true } }, function consoleSizeFile() {
- const file = Deno.openSync("cli/tests/hello.txt");
+ const file = Deno.openSync("cli/tests/testdata/hello.txt");
assertThrows(() => {
Deno.consoleSize(file.rid);
}, Error);
@@ -20,7 +20,7 @@ unitTest(function consoleSizeError() {
unitTest({ perms: { read: true } }, function isatty() {
// CI not under TTY, so cannot test stdin/stdout/stderr.
- const f = Deno.openSync("cli/tests/hello.txt");
+ const f = Deno.openSync("cli/tests/testdata/hello.txt");
assert(!Deno.isatty(f.rid));
f.close();
});