From 90125566bbaed8b5c6e55ca8dbc432e3433fb73c Mon Sep 17 00:00:00 2001 From: Maximilien Mellen Date: Wed, 19 Feb 2020 21:36:18 +0100 Subject: Enable TS strict mode by default (#3899) Fixes #3324 Co-authored-by: Kitson Kelly --- cli/js/os_test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cli/js/os_test.ts') diff --git a/cli/js/os_test.ts b/cli/js/os_test.ts index 6d9309000..a461ba63e 100644 --- a/cli/js/os_test.ts +++ b/cli/js/os_test.ts @@ -56,7 +56,10 @@ if (Deno.build.os === "win") { // specified in `inputEnv`. The subprocess reads the environment variables // which are in the keys of `expectedEnv` and writes them to stdout as JSON. // It is then verified that these match with the values of `expectedEnv`. - const checkChildEnv = async (inputEnv, expectedEnv): Promise => { + const checkChildEnv = async ( + inputEnv: Record, + expectedEnv: Record + ): Promise => { const src = ` console.log( ${JSON.stringify(Object.keys(expectedEnv))}.map(k => Deno.env(k)) @@ -249,6 +252,7 @@ testPerm({ env: true }, function getDir(): void { if (Deno.build.os !== r.os) continue; if (r.shouldHaveValue) { const d = Deno.dir(s.kind); + assert(d); assert(d.length > 0); } } -- cgit v1.2.3