From 9dfebbc9496138efbeedc431068f41662c780f3e Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 21 Apr 2019 16:40:10 -0400 Subject: Fix eslint warnings (#2151) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk Co-authored-by: LE GOFF Vincent --- js/read_dir_test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'js/read_dir_test.ts') diff --git a/js/read_dir_test.ts b/js/read_dir_test.ts index c2d90642c..a8466dda9 100644 --- a/js/read_dir_test.ts +++ b/js/read_dir_test.ts @@ -22,12 +22,12 @@ function assertSameContent(files: FileInfo[]): void { assertEquals(counter, 2); } -testPerm({ read: true }, function readDirSyncSuccess() { +testPerm({ read: true }, function readDirSyncSuccess(): void { const files = Deno.readDirSync("tests/"); assertSameContent(files); }); -testPerm({ read: false }, function readDirSyncPerm() { +testPerm({ read: false }, function readDirSyncPerm(): void { let caughtError = false; try { Deno.readDirSync("tests/"); @@ -39,7 +39,7 @@ testPerm({ read: false }, function readDirSyncPerm() { assert(caughtError); }); -testPerm({ read: true }, function readDirSyncNotDir() { +testPerm({ read: true }, function readDirSyncNotDir(): void { let caughtError = false; let src; @@ -53,7 +53,7 @@ testPerm({ read: true }, function readDirSyncNotDir() { assertEquals(src, undefined); }); -testPerm({ read: true }, function readDirSyncNotFound() { +testPerm({ read: true }, function readDirSyncNotFound(): void { let caughtError = false; let src; @@ -67,12 +67,12 @@ testPerm({ read: true }, function readDirSyncNotFound() { assertEquals(src, undefined); }); -testPerm({ read: true }, async function readDirSuccess() { +testPerm({ read: true }, async function readDirSuccess(): Promise { const files = await Deno.readDir("tests/"); assertSameContent(files); }); -testPerm({ read: false }, async function readDirPerm() { +testPerm({ read: false }, async function readDirPerm(): Promise { let caughtError = false; try { await Deno.readDir("tests/"); -- cgit v1.2.3