diff options
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"; |