| 146 | } |
| 147 | |
| 148 | class FakeTimerScheduler { |
| 149 | cbs: VoidFunction[] = []; |
| 150 | add(delay: number, callback: VoidFunction) { |
| 151 | this.cbs.push(callback); |
| 152 | } |
| 153 | remove(callback: VoidFunction) { |
| 154 | /* noop */ |
| 155 | } |
| 156 | |
| 157 | invoke() { |
| 158 | for (const cb of this.cbs) { |
| 159 | cb(); |
| 160 | } |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | @Injectable() |
| 165 | export class DebugConsole extends Console { |
nothing calls this directly
no outgoing calls
no test coverage detected