summaryrefslogtreecommitdiff
path: root/cli/tests/unit/real_path_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/real_path_test.ts
parenta0285e2eb88f6254f6494b0ecd1878db3a3b2a58 (diff)
chore: move test files to testdata directory (#11601)
Diffstat (limited to 'cli/tests/unit/real_path_test.ts')
-rw-r--r--cli/tests/unit/real_path_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tests/unit/real_path_test.ts b/cli/tests/unit/real_path_test.ts
index b84b0c0df..8c0728ca9 100644
--- a/cli/tests/unit/real_path_test.ts
+++ b/cli/tests/unit/real_path_test.ts
@@ -10,7 +10,7 @@ import {
} from "./test_util.ts";
unitTest({ perms: { read: true } }, function realPathSyncSuccess() {
- const relative = "cli/tests/fixture.json";
+ const relative = "cli/tests/testdata/fixture.json";
const realPath = Deno.realPathSync(relative);
if (Deno.build.os !== "windows") {
assert(realPath.startsWith("/"));
@@ -22,7 +22,7 @@ unitTest({ perms: { read: true } }, function realPathSyncSuccess() {
});
unitTest({ perms: { read: true } }, function realPathSyncUrl() {
- const relative = "cli/tests/fixture.json";
+ const relative = "cli/tests/testdata/fixture.json";
const url = pathToAbsoluteFileUrl(relative);
assertEquals(Deno.realPathSync(relative), Deno.realPathSync(url));
});
@@ -61,7 +61,7 @@ unitTest({ perms: { read: true } }, function realPathSyncNotFound() {
});
unitTest({ perms: { read: true } }, async function realPathSuccess() {
- const relativePath = "cli/tests/fixture.json";
+ const relativePath = "cli/tests/testdata/fixture.json";
const realPath = await Deno.realPath(relativePath);
if (Deno.build.os !== "windows") {
assert(realPath.startsWith("/"));
@@ -75,7 +75,7 @@ unitTest({ perms: { read: true } }, async function realPathSuccess() {
unitTest(
{ perms: { read: true } },
async function realPathUrl() {
- const relative = "cli/tests/fixture.json";
+ const relative = "cli/tests/testdata/fixture.json";
const url = pathToAbsoluteFileUrl(relative);
assertEquals(await Deno.realPath(relative), await Deno.realPath(url));
},