summaryrefslogtreecommitdiff
path: root/fs/path/parse_format_test.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-10-06 01:02:34 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-10-05 12:02:34 -0400
commit96fe2d10a4da0521b7cd72d90fd42121f9311978 (patch)
treecb4d5ecafa55a3a522cf0ad9d742fb6a1e1f2283 /fs/path/parse_format_test.ts
parent2f90225c89926932a34eb40758e2af0d1742e1f8 (diff)
Update eslint and @typescript-eslint (denoland/deno_std#621)
Original: https://github.com/denoland/deno_std/commit/c3fe858f98565edbe8faeb3cf2e5b873304f4f6e
Diffstat (limited to 'fs/path/parse_format_test.ts')
-rw-r--r--fs/path/parse_format_test.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/path/parse_format_test.ts b/fs/path/parse_format_test.ts
index 8829891da..db83c3354 100644
--- a/fs/path/parse_format_test.ts
+++ b/fs/path/parse_format_test.ts
@@ -1,5 +1,7 @@
// Copyright the Browserify authors. MIT License.
// Ported from https://github.com/browserify/path-browserify/
+/* eslint-disable @typescript-eslint/no-explicit-any */
+// TODO(kt3k): fix any types in this file
import { test } from "../../testing/mod.ts";
import { assertEquals } from "../../testing/asserts.ts";
@@ -80,7 +82,7 @@ const unixSpecialCaseFormatTests = [
];
function checkParseFormat(path: any, paths: any): void {
- paths.forEach(function(p: Record<string, unknown>[]) {
+ paths.forEach(function(p: Array<Record<string, unknown>>) {
const element = p[0];
const output = path.parse(element);
assertEquals(typeof output.root, "string");
@@ -96,7 +98,7 @@ function checkParseFormat(path: any, paths: any): void {
}
function checkSpecialCaseParseFormat(path: any, testCases: any): void {
- testCases.forEach(function(testCase: Record<string, unknown>[]) {
+ testCases.forEach(function(testCase: Array<Record<string, unknown>>) {
const element = testCase[0];
const expect = testCase[1];
const output = path.parse(element);