diff options
| author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-03-12 14:51:51 +0900 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-12 01:51:51 -0400 |
| commit | f124e645263099132025256df8594ca0dc5cc83a (patch) | |
| tree | 07f0f99b99e55f431f71f4463aa912ab96405f61 /fs/glob_test.ts | |
| parent | 4a97a6e67e93cdbcecde3d9b99092f15d3dfd803 (diff) | |
fix: eslint errors (denoland/deno_std#265)
Original: https://github.com/denoland/deno_std/commit/61af419bbc5717c2e2552050aacb20ef1b17480b
Diffstat (limited to 'fs/glob_test.ts')
| -rw-r--r-- | fs/glob_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/glob_test.ts b/fs/glob_test.ts index 2dc509dee..fc3704ae3 100644 --- a/fs/glob_test.ts +++ b/fs/glob_test.ts @@ -14,16 +14,16 @@ async function touch(path: string): Promise<void> { async function walkArray( dirname: string = ".", options: WalkOptions = {} -): Promise<Array<string>> { +): Promise<string[]> { const arr: string[] = []; for await (const f of walk(dirname, { ...options })) { arr.push(f.path.replace(/\\/g, "/")); } arr.sort(); - const arr_sync = Array.from(walkSync(dirname, options), (f: FileInfo) => + const arrSync = Array.from(walkSync(dirname, options), (f: FileInfo) => f.path.replace(/\\/g, "/") ).sort(); - assertEquals(arr, arr_sync); + assertEquals(arr, arrSync); return arr; } |
