mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
fix no-inner-declaration lint rule (#7287)
This commit is contained in:
parent
0071dfdc5c
commit
71f0171ab0
2 changed files with 18 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue