diff options
author | Leo K <crowlkats@toaxl.com> | 2021-08-05 13:08:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-05 13:08:58 +0200 |
commit | 3f0cf9619fce71a8898c495501df4bdb0e07e735 (patch) | |
tree | 1b8af2c832f8344f9a39f55326d576eab63f447f /cli/tests/unit/link_test.ts | |
parent | 299c7cfe54cb184e0d0c18b00a154c953b433ebf (diff) |
refactor(cli/tests): remove unnecessary void return types (#11577)
Diffstat (limited to 'cli/tests/unit/link_test.ts')
-rw-r--r-- | cli/tests/unit/link_test.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/tests/unit/link_test.ts b/cli/tests/unit/link_test.ts index 86cd65bae..5d3553ac3 100644 --- a/cli/tests/unit/link_test.ts +++ b/cli/tests/unit/link_test.ts @@ -3,7 +3,7 @@ import { assert, assertEquals, assertThrows, unitTest } from "./test_util.ts"; unitTest( { perms: { read: true, write: true } }, - function linkSyncSuccess(): void { + function linkSyncSuccess() { const testDir = Deno.makeTempDirSync(); const oldData = "Hardlink"; const oldName = testDir + "/oldname"; @@ -42,7 +42,7 @@ unitTest( unitTest( { perms: { read: true, write: true } }, - function linkSyncExists(): void { + function linkSyncExists() { const testDir = Deno.makeTempDirSync(); const oldName = testDir + "/oldname"; const newName = testDir + "/newname"; @@ -58,7 +58,7 @@ unitTest( unitTest( { perms: { read: true, write: true } }, - function linkSyncNotFound(): void { + function linkSyncNotFound() { const testDir = Deno.makeTempDirSync(); const oldName = testDir + "/oldname"; const newName = testDir + "/newname"; @@ -71,7 +71,7 @@ unitTest( unitTest( { perms: { read: false, write: true } }, - function linkSyncReadPerm(): void { + function linkSyncReadPerm() { assertThrows(() => { Deno.linkSync("oldbaddir", "newbaddir"); }, Deno.errors.PermissionDenied); @@ -80,7 +80,7 @@ unitTest( unitTest( { perms: { read: true, write: false } }, - function linkSyncWritePerm(): void { + function linkSyncWritePerm() { assertThrows(() => { Deno.linkSync("oldbaddir", "newbaddir"); }, Deno.errors.PermissionDenied); @@ -89,7 +89,7 @@ unitTest( unitTest( { perms: { read: true, write: true } }, - async function linkSuccess(): Promise<void> { + async function linkSuccess() { const testDir = Deno.makeTempDirSync(); const oldData = "Hardlink"; const oldName = testDir + "/oldname"; |