diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2022-09-19 09:32:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-19 10:32:21 -0400 |
| commit | 1464b756a4ef091ef97d1bf7340188ab5fe5492a (patch) | |
| tree | 2eff346ccf5782c501460aec63a5028742066fa6 /cli/tests/unit/real_path_test.ts | |
| parent | 8d50c09c0db4e9b0644263cde3f7ff990ec75259 (diff) | |
refactor: move out test files from root testdata directory into sub directories (#15949)
Diffstat (limited to 'cli/tests/unit/real_path_test.ts')
| -rw-r--r-- | cli/tests/unit/real_path_test.ts | 8 |
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 2dfb5d214..5297c2b76 100644 --- a/cli/tests/unit/real_path_test.ts +++ b/cli/tests/unit/real_path_test.ts @@ -9,7 +9,7 @@ import { } from "./test_util.ts"; Deno.test({ permissions: { read: true } }, function realPathSyncSuccess() { - const relative = "cli/tests/testdata/fixture.json"; + const relative = "cli/tests/testdata/assets/fixture.json"; const realPath = Deno.realPathSync(relative); if (Deno.build.os !== "windows") { assert(realPath.startsWith("/")); @@ -21,7 +21,7 @@ Deno.test({ permissions: { read: true } }, function realPathSyncSuccess() { }); Deno.test({ permissions: { read: true } }, function realPathSyncUrl() { - const relative = "cli/tests/testdata/fixture.json"; + const relative = "cli/tests/testdata/assets/fixture.json"; const url = pathToAbsoluteFileUrl(relative); assertEquals(Deno.realPathSync(relative), Deno.realPathSync(url)); }); @@ -60,7 +60,7 @@ Deno.test({ permissions: { read: true } }, function realPathSyncNotFound() { }); Deno.test({ permissions: { read: true } }, async function realPathSuccess() { - const relativePath = "cli/tests/testdata/fixture.json"; + const relativePath = "cli/tests/testdata/assets/fixture.json"; const realPath = await Deno.realPath(relativePath); if (Deno.build.os !== "windows") { assert(realPath.startsWith("/")); @@ -74,7 +74,7 @@ Deno.test({ permissions: { read: true } }, async function realPathSuccess() { Deno.test( { permissions: { read: true } }, async function realPathUrl() { - const relative = "cli/tests/testdata/fixture.json"; + const relative = "cli/tests/testdata/assets/fixture.json"; const url = pathToAbsoluteFileUrl(relative); assertEquals(await Deno.realPath(relative), await Deno.realPath(url)); }, |
