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