diff options
Diffstat (limited to 'std/fs/expand_glob_test.ts')
-rw-r--r-- | std/fs/expand_glob_test.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/std/fs/expand_glob_test.ts b/std/fs/expand_glob_test.ts index 7d60d024e..1eec4df42 100644 --- a/std/fs/expand_glob_test.ts +++ b/std/fs/expand_glob_test.ts @@ -1,4 +1,3 @@ -const { cwd, execPath, run } = Deno; import { decode } from "../encoding/utf8.ts"; import { assert, @@ -32,7 +31,7 @@ async function expandGlobArray( ); pathsSync.sort(); assertEquals(paths, pathsSync); - const root = normalize(options.root || cwd()); + const root = normalize(options.root || Deno.cwd()); for (const path of paths) { assert(path.startsWith(root)); } @@ -118,8 +117,8 @@ Deno.test("expandGlobIncludeDirs", async function (): Promise<void> { Deno.test("expandGlobPermError", async function (): Promise<void> { const exampleUrl = new URL("testdata/expand_wildcard.js", import.meta.url); - const p = run({ - cmd: [execPath(), "run", "--unstable", exampleUrl.toString()], + const p = Deno.run({ + cmd: [Deno.execPath(), "run", "--unstable", exampleUrl.toString()], stdin: "null", stdout: "piped", stderr: "piped", |