fix no-inner-declaration lint rule (#7287)

This commit is contained in:
Yusuke Tanaka 2020-09-01 03:11:17 +09:00 committed by GitHub
parent 0071dfdc5c
commit 71f0171ab0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 18 deletions

View file

@ -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;