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/symlink_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/symlink_test.ts')
-rw-r--r-- | js/symlink_test.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/js/symlink_test.ts b/js/symlink_test.ts index 37b157294..ae9b0c8cc 100644 --- a/js/symlink_test.ts +++ b/js/symlink_test.ts @@ -1,7 +1,7 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, testPerm, assert, assertEquals } from "./test_util.ts"; -testPerm({ read: true, write: true }, function symlinkSyncSuccess() { +testPerm({ read: true, write: true }, function symlinkSyncSuccess(): void { const testDir = Deno.makeTempDirSync(); const oldname = testDir + "/oldname"; const newname = testDir + "/newname"; @@ -24,7 +24,7 @@ testPerm({ read: true, write: true }, function symlinkSyncSuccess() { } }); -test(function symlinkSyncPerm() { +test(function symlinkSyncPerm(): void { let err; try { Deno.symlinkSync("oldbaddir", "newbaddir"); @@ -36,7 +36,7 @@ test(function symlinkSyncPerm() { }); // Just for now, until we implement symlink for Windows. -testPerm({ write: true }, function symlinkSyncNotImplemented() { +testPerm({ write: true }, function symlinkSyncNotImplemented(): void { let err; try { Deno.symlinkSync("oldname", "newname", "dir"); @@ -46,7 +46,9 @@ testPerm({ write: true }, function symlinkSyncNotImplemented() { assertEquals(err.message, "Not implemented"); }); -testPerm({ read: true, write: true }, async function symlinkSuccess() { +testPerm({ read: true, write: true }, async function symlinkSuccess(): Promise< + void +> { const testDir = Deno.makeTempDirSync(); const oldname = testDir + "/oldname"; const newname = testDir + "/newname"; |