summaryrefslogtreecommitdiff
path: root/js/read_dir_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/read_dir_test.ts')
-rw-r--r--js/read_dir_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/read_dir_test.ts b/js/read_dir_test.ts
index 914c2b2a8..c2d90642c 100644
--- a/js/read_dir_test.ts
+++ b/js/read_dir_test.ts
@@ -3,7 +3,7 @@ import { testPerm, assert, assertEquals } from "./test_util.ts";
type FileInfo = Deno.FileInfo;
-function assertSameContent(files: FileInfo[]) {
+function assertSameContent(files: FileInfo[]): void {
let counter = 0;
for (const file of files) {
@@ -30,7 +30,7 @@ testPerm({ read: true }, function readDirSyncSuccess() {
testPerm({ read: false }, function readDirSyncPerm() {
let caughtError = false;
try {
- const files = Deno.readDirSync("tests/");
+ Deno.readDirSync("tests/");
} catch (e) {
caughtError = true;
assertEquals(e.kind, Deno.ErrorKind.PermissionDenied);
@@ -75,7 +75,7 @@ testPerm({ read: true }, async function readDirSuccess() {
testPerm({ read: false }, async function readDirPerm() {
let caughtError = false;
try {
- const files = await Deno.readDir("tests/");
+ await Deno.readDir("tests/");
} catch (e) {
caughtError = true;
assertEquals(e.kind, Deno.ErrorKind.PermissionDenied);