From dcd01dd02530df0e799eb4227087680ffeb80d74 Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Wed, 24 Apr 2019 13:41:23 +0200 Subject: Eslint fixes (denoland/deno_std#356) Make warnings fail Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc --- fs/utils_test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fs/utils_test.ts') 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) { -- cgit v1.2.3