summaryrefslogtreecommitdiff
path: root/js/link_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-04-21 16:40:10 -0400
committerGitHub <noreply@github.com>2019-04-21 16:40:10 -0400
commit9dfebbc9496138efbeedc431068f41662c780f3e (patch)
treec3718c3dc132d11c08c8fc18933daebf886bf787 /js/link_test.ts
parent6cded14bdf313762956d4d5361cfe8115628b535 (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/link_test.ts')
-rw-r--r--js/link_test.ts12
1 files changed, 7 insertions, 5 deletions
diff --git a/js/link_test.ts b/js/link_test.ts
index c2ca7b1f8..d6b5f0a33 100644
--- a/js/link_test.ts
+++ b/js/link_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 linkSyncSuccess() {
+testPerm({ read: true, write: true }, function linkSyncSuccess(): void {
const testDir = Deno.makeTempDirSync();
const oldData = "Hardlink";
const oldName = testDir + "/oldname";
@@ -28,7 +28,7 @@ testPerm({ read: true, write: true }, function linkSyncSuccess() {
assertEquals(newData3, new TextDecoder().decode(Deno.readFileSync(newName)));
});
-testPerm({ read: true, write: true }, function linkSyncExists() {
+testPerm({ read: true, write: true }, function linkSyncExists(): void {
const testDir = Deno.makeTempDirSync();
const oldName = testDir + "/oldname";
const newName = testDir + "/newname";
@@ -48,7 +48,7 @@ testPerm({ read: true, write: true }, function linkSyncExists() {
assertEquals(err.name, "AlreadyExists");
});
-testPerm({ read: true, write: true }, function linkSyncNotFound() {
+testPerm({ read: true, write: true }, function linkSyncNotFound(): void {
const testDir = Deno.makeTempDirSync();
const oldName = testDir + "/oldname";
const newName = testDir + "/newname";
@@ -65,7 +65,7 @@ testPerm({ read: true, write: true }, function linkSyncNotFound() {
assertEquals(err.name, "NotFound");
});
-test(function linkSyncPerm() {
+test(function linkSyncPerm(): void {
let err;
try {
Deno.linkSync("oldbaddir", "newbaddir");
@@ -76,7 +76,9 @@ test(function linkSyncPerm() {
assertEquals(err.name, "PermissionDenied");
});
-testPerm({ read: true, write: true }, async function linkSuccess() {
+testPerm({ read: true, write: true }, async function linkSuccess(): Promise<
+ void
+> {
const testDir = Deno.makeTempDirSync();
const oldData = "Hardlink";
const oldName = testDir + "/oldname";