From 71f0171ab05c283a0148ddb28c988f50acf9d989 Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Tue, 1 Sep 2020 03:11:17 +0900 Subject: fix no-inner-declaration lint rule (#7287) --- cli/tests/unit/timers_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/unit/timers_test.ts b/cli/tests/unit/timers_test.ts index 30da0dfe9..b36c8b94f 100644 --- a/cli/tests/unit/timers_test.ts +++ b/cli/tests/unit/timers_test.ts @@ -379,9 +379,9 @@ unitTest(async function timerIgnoresDateOverride(): Promise { reject("global Date override used over original Date object"); return 0; }; - function DateOverride(): void { + const DateOverride = (): void => { overrideCalled(); - } + }; globalThis.Date = DateOverride as DateConstructor; globalThis.Date.now = overrideCalled; globalThis.Date.UTC = overrideCalled; -- cgit v1.2.3