From dcd01dd02530df0e799eb4227087680ffeb80d74 Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Wed, 24 Apr 2019 13:41:23 +0200 Subject: Eslint fixes (denoland/deno_std#356) Make warnings fail Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc --- testing/mod.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing/mod.ts') diff --git a/testing/mod.ts b/testing/mod.ts index 71f27db20..fab8145e8 100644 --- a/testing/mod.ts +++ b/testing/mod.ts @@ -212,7 +212,7 @@ export async function runTests({ skip = /^\s*$/ }: RunOptions = {}): Promise { const tests: TestDefinition[] = candidates.filter( - ({ name }) => only.test(name) && !skip.test(name) + ({ name }): boolean => only.test(name) && !skip.test(name) ); const stats: TestStats = { measured: 0, @@ -232,7 +232,7 @@ export async function runTests({ if (stats.failed) { // Use setTimeout to avoid the error being ignored due to unhandled // promise rejections being swallowed. - setTimeout(() => { + setTimeout((): void => { console.error(`There were ${stats.failed} test failures.`); Deno.exit(1); }, 0); -- cgit v1.2.3