(id: string)
| 295 | } |
| 296 | |
| 297 | deleteTicket(id: string): boolean { |
| 298 | const initialLength = this.serviceQueue.length; |
| 299 | this.serviceQueue = this.serviceQueue.filter((t) => t.id !== id); |
| 300 | return this.serviceQueue.length < initialLength; |
| 301 | } |
| 302 | |
| 303 | getUnit(id: string): FleetUnit | undefined { |
| 304 | return this.fleet.find((u) => u.id === id); |
no outgoing calls
no test coverage detected