summaryrefslogtreecommitdiff
path: root/fs/path/resolve_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2019-05-30 14:59:30 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-05-30 08:59:30 -0400
commit50a79584cb12129b3db1ef3e0eb9d0c8b9f20b62 (patch)
treeee9a90a8b8018c03b1e1a6ace07abdaa494ea90d /fs/path/resolve_test.ts
parent80b3c486f6222f65b52eb2eca903b67312e8ce0c (diff)
chore: Implement strict mode (denoland/deno_std#453)
Original: https://github.com/denoland/deno_std/commit/be24677d15494e83eea2e99bfc5ccfdde31cb892
Diffstat (limited to 'fs/path/resolve_test.ts')
-rw-r--r--fs/path/resolve_test.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/path/resolve_test.ts b/fs/path/resolve_test.ts
index 7ee9513c1..606570aad 100644
--- a/fs/path/resolve_test.ts
+++ b/fs/path/resolve_test.ts
@@ -37,14 +37,16 @@ const posixTests =
test(function resolve() {
posixTests.forEach(function(p) {
- const actual = path.posix.resolve.apply(null, p[0]);
+ const _p = p[0] as string[];
+ const actual = path.posix.resolve.apply(null, _p);
assertEquals(actual, p[1]);
});
});
test(function resolveWin32() {
windowsTests.forEach(function(p) {
- const actual = path.win32.resolve.apply(null, p[0]);
+ const _p = p[0] as string[];
+ const actual = path.win32.resolve.apply(null, _p);
assertEquals(actual, p[1]);
});
});