summaryrefslogtreecommitdiff
path: root/js/rename_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/rename_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/rename_test.ts')
-rw-r--r--js/rename_test.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/js/rename_test.ts b/js/rename_test.ts
index 689787115..ce87a3dfe 100644
--- a/js/rename_test.ts
+++ b/js/rename_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({ read: true, write: true }, function renameSyncSuccess() {
+testPerm({ read: true, write: true }, function renameSyncSuccess(): void {
const testDir = Deno.makeTempDirSync();
const oldpath = testDir + "/oldpath";
const newpath = testDir + "/newpath";
@@ -23,7 +23,7 @@ testPerm({ read: true, write: true }, function renameSyncSuccess() {
assertEquals(oldPathInfo, undefined);
});
-testPerm({ read: true, write: false }, function renameSyncPerm() {
+testPerm({ read: true, write: false }, function renameSyncPerm(): void {
let err;
try {
const oldpath = "/oldbaddir";
@@ -36,7 +36,9 @@ testPerm({ read: true, write: false }, function renameSyncPerm() {
assertEquals(err.name, "PermissionDenied");
});
-testPerm({ read: true, write: true }, async function renameSuccess() {
+testPerm({ read: true, write: true }, async function renameSuccess(): Promise<
+ void
+> {
const testDir = Deno.makeTempDirSync();
const oldpath = testDir + "/oldpath";
const newpath = testDir + "/newpath";