diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2020-09-01 03:11:17 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-31 14:11:17 -0400 |
commit | 71f0171ab05c283a0148ddb28c988f50acf9d989 (patch) | |
tree | dbbf9cb3b048e47eade36f7d637cb808dde3aab9 /cli/tests/unit | |
parent | 0071dfdc5ced9a717c7b5008e20bf79f1b6dc78a (diff) |
fix no-inner-declaration lint rule (#7287)
Diffstat (limited to 'cli/tests/unit')
-rw-r--r-- | cli/tests/unit/timers_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<void> { 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; |