summaryrefslogtreecommitdiff
path: root/cli/tests/unit/tty_test.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-08-11 10:20:47 -0400
committerGitHub <noreply@github.com>2021-08-11 10:20:47 -0400
commit15a763152f9d392cb80692262f8de5ef8ae15495 (patch)
treefcd1a59777f95920bf3502519983d6cc0d882a9a /cli/tests/unit/tty_test.ts
parenta0285e2eb88f6254f6494b0ecd1878db3a3b2a58 (diff)
chore: move test files to testdata directory (#11601)
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();
});