diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-06-12 20:23:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 15:23:38 -0400 |
commit | 1fff6f55c3ba98a10018c6d374795e612061e9b6 (patch) | |
tree | 12074b6d44736b11513d857e437f9e30a6bf65a4 /std/fs/expand_glob_test.ts | |
parent | 26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff) |
refactor: Don't destructure the Deno namespace (#6268)
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", |