| 12 | |
| 13 | @Injectable() |
| 14 | export class TestingWebhookService { |
| 15 | private readonly records: TestingWebhookRecord[] = []; |
| 16 | |
| 17 | record(record: TestingWebhookRecord): TestingWebhookRecord { |
| 18 | this.records.push(record); |
| 19 | return record; |
| 20 | } |
| 21 | |
| 22 | list(): TestingWebhookRecord[] { |
| 23 | return [...this.records]; |
| 24 | } |
| 25 | |
| 26 | latest(): TestingWebhookRecord | undefined { |
| 27 | return this.records.at(-1); |
| 28 | } |
| 29 | |
| 30 | clear(): void { |
| 31 | this.records.length = 0; |
| 32 | } |
| 33 | } |
nothing calls this directly
no outgoing calls
no test coverage detected