Count events of a specific type
(type: PrintModeEvent['type'])
| 110 | |
| 111 | /** Count events of a specific type */ |
| 112 | countEvents(type: PrintModeEvent['type']): number { |
| 113 | return this.events.filter((e) => e.type === type).length |
| 114 | } |
| 115 | |
| 116 | /** Clear all collected events */ |
| 117 | clear(): void { |
no outgoing calls
no test coverage detected