()
| 95 | constructor() {} |
| 96 | |
| 97 | static getNextId() { |
| 98 | const id = patchedTimers!.nativeSetTimeout.call(global, timeoutCallback, 0); |
| 99 | patchedTimers!.nativeClearTimeout.call(global, id); |
| 100 | if (typeof id === 'number') { |
| 101 | return id; |
| 102 | } |
| 103 | // in NodeJS, we just use a number for fakeAsync, since it will not |
| 104 | // conflict with native TimeoutId |
| 105 | return Scheduler.nextNodeJSId++; |
| 106 | } |
| 107 | |
| 108 | getCurrentTickTime() { |
| 109 | return this._currentTickTime; |
no outgoing calls
no test coverage detected