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/read_link_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/read_link_test.ts')
-rw-r--r-- | js/read_link_test.ts | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/js/read_link_test.ts b/js/read_link_test.ts index 270ae54fa..83a693e3b 100644 --- a/js/read_link_test.ts +++ b/js/read_link_test.ts @@ -1,7 +1,7 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { testPerm, assert, assertEquals } from "./test_util.ts"; -testPerm({ write: true, read: true }, function readlinkSyncSuccess() { +testPerm({ write: true, read: true }, function readlinkSyncSuccess(): void { const testDir = Deno.makeTempDirSync(); const target = testDir + "/target"; const symlink = testDir + "/symln"; @@ -15,7 +15,7 @@ testPerm({ write: true, read: true }, function readlinkSyncSuccess() { } }); -testPerm({ read: false }, async function readlinkSyncPerm() { +testPerm({ read: false }, async function readlinkSyncPerm(): Promise<void> { let caughtError = false; try { Deno.readlinkSync("/symlink"); @@ -27,7 +27,7 @@ testPerm({ read: false }, async function readlinkSyncPerm() { assert(caughtError); }); -testPerm({ read: true }, function readlinkSyncNotFound() { +testPerm({ read: true }, function readlinkSyncNotFound(): void { let caughtError = false; let data; try { @@ -40,7 +40,9 @@ testPerm({ read: true }, function readlinkSyncNotFound() { assertEquals(data, undefined); }); -testPerm({ write: true, read: true }, async function readlinkSuccess() { +testPerm({ write: true, read: true }, async function readlinkSuccess(): Promise< + void +> { const testDir = Deno.makeTempDirSync(); const target = testDir + "/target"; const symlink = testDir + "/symln"; @@ -54,7 +56,7 @@ testPerm({ write: true, read: true }, async function readlinkSuccess() { } }); -testPerm({ read: false }, async function readlinkPerm() { +testPerm({ read: false }, async function readlinkPerm(): Promise<void> { let caughtError = false; try { await Deno.readlink("/symlink"); |