diff options
Diffstat (limited to 'std/fs/expand_glob_test.ts')
-rw-r--r-- | std/fs/expand_glob_test.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/std/fs/expand_glob_test.ts b/std/fs/expand_glob_test.ts index 1eec4df42..8b4a90754 100644 --- a/std/fs/expand_glob_test.ts +++ b/std/fs/expand_glob_test.ts @@ -19,7 +19,7 @@ import { async function expandGlobArray( globString: string, - options: ExpandGlobOptions + options: ExpandGlobOptions, ): Promise<string[]> { const paths: string[] = []; for await (const { path } of expandGlob(globString, options)) { @@ -27,7 +27,7 @@ async function expandGlobArray( } paths.sort(); const pathsSync = [...expandGlobSync(globString, options)].map( - ({ path }): string => path + ({ path }): string => path, ); pathsSync.sort(); assertEquals(paths, pathsSync); @@ -36,7 +36,7 @@ async function expandGlobArray( assert(path.startsWith(root)); } const relativePaths = paths.map( - (path: string): string => relative(root, path) || "." + (path: string): string => relative(root, path) || ".", ); relativePaths.sort(); return relativePaths; @@ -98,7 +98,7 @@ Deno.test("expandGlobGlobstar", async function (): Promise<void> { const options = { ...EG_OPTIONS, globstar: true }; assertEquals( await expandGlobArray(joinGlobs(["**", "abc"], options), options), - ["abc", join("subdir", "abc")] + ["abc", join("subdir", "abc")], ); }); @@ -106,7 +106,7 @@ Deno.test("expandGlobGlobstarParent", async function (): Promise<void> { const options = { ...EG_OPTIONS, globstar: true }; assertEquals( await expandGlobArray(joinGlobs(["subdir", "**", ".."], options), options), - ["."] + ["."], ); }); @@ -127,7 +127,7 @@ Deno.test("expandGlobPermError", async function (): Promise<void> { assertEquals(decode(await p.output()), ""); assertStringContains( decode(await p.stderrOutput()), - "Uncaught PermissionDenied" + "Uncaught PermissionDenied", ); p.close(); }); |