From 50a79584cb12129b3db1ef3e0eb9d0c8b9f20b62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 30 May 2019 14:59:30 +0200 Subject: chore: Implement strict mode (denoland/deno_std#453) Original: https://github.com/denoland/deno_std/commit/be24677d15494e83eea2e99bfc5ccfdde31cb892 --- fs/path/join_test.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'fs/path/join_test.ts') diff --git a/fs/path/join_test.ts b/fs/path/join_test.ts index d82a1b471..2c0f35e48 100644 --- a/fs/path/join_test.ts +++ b/fs/path/join_test.ts @@ -108,18 +108,21 @@ const windowsJoinTests = [ test(function join() { joinTests.forEach(function(p) { - const actual = path.posix.join.apply(null, p[0]); + const _p = p[0] as string[]; + const actual = path.posix.join.apply(null, _p); assertEquals(actual, p[1]); }); }); test(function joinWin32() { joinTests.forEach(function(p) { - const actual = path.win32.join.apply(null, p[0]).replace(backslashRE, "/"); + const _p = p[0] as string[]; + const actual = path.win32.join.apply(null, _p).replace(backslashRE, "/"); assertEquals(actual, p[1]); }); windowsJoinTests.forEach(function(p) { - const actual = path.win32.join.apply(null, p[0]); + const _p = p[0] as string[]; + const actual = path.win32.join.apply(null, _p); assertEquals(actual, p[1]); }); }); -- cgit v1.2.3