summaryrefslogtreecommitdiff
path: root/fs/utils_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'fs/utils_test.ts')
-rw-r--r--fs/utils_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/utils_test.ts b/fs/utils_test.ts
index d833aa559..5b33842ad 100644
--- a/fs/utils_test.ts
+++ b/fs/utils_test.ts
@@ -9,7 +9,7 @@ import { ensureDirSync } from "./ensure_dir.ts";
const testdataDir = path.resolve("fs", "testdata");
-test(function _isSubdir() {
+test(function _isSubdir(): void {
const pairs = [
["", "", false, path.posix.sep],
["/first/second", "/first", false, path.posix.sep],
@@ -21,7 +21,7 @@ test(function _isSubdir() {
["c:\\first", "c:\\first\\second", true, path.win32.sep]
];
- pairs.forEach(function(p) {
+ pairs.forEach(function(p): void {
const src = p[0] as string;
const dest = p[1] as string;
const expected = p[2] as boolean;
@@ -34,13 +34,13 @@ test(function _isSubdir() {
});
});
-test(function _getFileInfoType() {
+test(function _getFileInfoType(): void {
const pairs = [
[path.join(testdataDir, "file_type_1"), "file"],
[path.join(testdataDir, "file_type_dir_1"), "dir"]
];
- pairs.forEach(function(p) {
+ pairs.forEach(function(p): void {
const filePath = p[0] as string;
const type = p[1] as PathType;
switch (type) {