(delay: number)
| 199 | } |
| 200 | |
| 201 | function fakeAbortSignalTimeout(delay: number): AbortSignal { |
| 202 | const aborter = new AbortController(); |
| 203 | fakeSetTimeout(() => { |
| 204 | aborter.abort(new DOMException("Signal timed out.", "TimeoutError")); |
| 205 | }, delay); |
| 206 | return aborter.signal; |
| 207 | } |
| 208 | |
| 209 | function overrideGlobals() { |
| 210 | globalThis.Date = FakeDate; |
nothing calls this directly
no test coverage detected