diff options
Diffstat (limited to 'std/fs/exists_test.ts')
-rw-r--r-- | std/fs/exists_test.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/std/fs/exists_test.ts b/std/fs/exists_test.ts index 5f3c85650..f4088e03a 100644 --- a/std/fs/exists_test.ts +++ b/std/fs/exists_test.ts @@ -3,7 +3,8 @@ import { assertEquals, assertStringContains } from "../testing/asserts.ts"; import * as path from "../path/mod.ts"; import { exists, existsSync } from "./exists.ts"; -const testdataDir = path.resolve("fs", "testdata"); +const moduleDir = path.dirname(path.fromFileUrl(import.meta.url)); +const testdataDir = path.resolve(moduleDir, "testdata"); Deno.test("[fs] existsFile", async function (): Promise<void> { assertEquals( |