diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-04-24 13:41:23 +0200 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-24 07:41:22 -0400 |
| commit | dcd01dd02530df0e799eb4227087680ffeb80d74 (patch) | |
| tree | 8cc1dec75dd17c326fea6d7fe471b7e7a31032f7 /fs/utils_test.ts | |
| parent | e1f7a60bb326f8299f339635c0738d28431afa0a (diff) | |
Eslint fixes (denoland/deno_std#356)
Make warnings fail
Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc
Diffstat (limited to 'fs/utils_test.ts')
| -rw-r--r-- | fs/utils_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/utils_test.ts b/fs/utils_test.ts index d833aa559..5b33842ad 100644 --- a/fs/utils_test.ts +++ b/fs/utils_test.ts @@ -9,7 +9,7 @@ import { ensureDirSync } from "./ensure_dir.ts"; const testdataDir = path.resolve("fs", "testdata"); -test(function _isSubdir() { +test(function _isSubdir(): void { const pairs = [ ["", "", false, path.posix.sep], ["/first/second", "/first", false, path.posix.sep], @@ -21,7 +21,7 @@ test(function _isSubdir() { ["c:\\first", "c:\\first\\second", true, path.win32.sep] ]; - pairs.forEach(function(p) { + pairs.forEach(function(p): void { const src = p[0] as string; const dest = p[1] as string; const expected = p[2] as boolean; @@ -34,13 +34,13 @@ test(function _isSubdir() { }); }); -test(function _getFileInfoType() { +test(function _getFileInfoType(): void { const pairs = [ [path.join(testdataDir, "file_type_1"), "file"], [path.join(testdataDir, "file_type_dir_1"), "dir"] ]; - pairs.forEach(function(p) { + pairs.forEach(function(p): void { const filePath = p[0] as string; const type = p[1] as PathType; switch (type) { |
