diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-04-21 16:40:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-21 16:40:10 -0400 |
commit | 9dfebbc9496138efbeedc431068f41662c780f3e (patch) | |
tree | c3718c3dc132d11c08c8fc18933daebf886bf787 /js/truncate_test.ts | |
parent | 6cded14bdf313762956d4d5361cfe8115628b535 (diff) |
Fix eslint warnings (#2151)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
Diffstat (limited to 'js/truncate_test.ts')
-rw-r--r-- | js/truncate_test.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/js/truncate_test.ts b/js/truncate_test.ts index 09830c073..055db8652 100644 --- a/js/truncate_test.ts +++ b/js/truncate_test.ts @@ -15,7 +15,7 @@ async function readData(name: string): Promise<string> { return text; } -testPerm({ read: true, write: true }, function truncateSyncSuccess() { +testPerm({ read: true, write: true }, function truncateSyncSuccess(): void { const enc = new TextEncoder(); const d = enc.encode("Hello"); const filename = Deno.makeTempDirSync() + "/test_truncateSync.txt"; @@ -32,7 +32,9 @@ testPerm({ read: true, write: true }, function truncateSyncSuccess() { Deno.removeSync(filename); }); -testPerm({ read: true, write: true }, async function truncateSuccess() { +testPerm({ read: true, write: true }, async function truncateSuccess(): Promise< + void +> { const enc = new TextEncoder(); const d = enc.encode("Hello"); const filename = Deno.makeTempDirSync() + "/test_truncate.txt"; @@ -49,7 +51,7 @@ testPerm({ read: true, write: true }, async function truncateSuccess() { await Deno.remove(filename); }); -testPerm({ write: false }, function truncateSyncPerm() { +testPerm({ write: false }, function truncateSyncPerm(): void { let err; try { Deno.mkdirSync("/test_truncateSyncPermission.txt"); @@ -60,7 +62,7 @@ testPerm({ write: false }, function truncateSyncPerm() { assertEquals(err.name, "PermissionDenied"); }); -testPerm({ write: false }, async function truncatePerm() { +testPerm({ write: false }, async function truncatePerm(): Promise<void> { let err; try { await Deno.mkdir("/test_truncatePermission.txt"); |