( kv: KVNamespace, backlogCount: number, notify: (alert: AlertPayload) => Promise<void> )
| 50 | } |
| 51 | |
| 52 | async function evaluateAt( |
| 53 | kv: KVNamespace, |
| 54 | backlogCount: number, |
| 55 | notify: (alert: AlertPayload) => Promise<void> |
| 56 | ): Promise<void> { |
| 57 | await evaluateQueueBacklogAlert(makeEnv(kv), async () => makeMetrics(backlogCount), notify); |
| 58 | } |
| 59 | |
| 60 | describe('evaluateQueueBacklogAlert', () => { |
| 61 | it('sends one ticket alert and persists queue-scoped state', async () => { |
no test coverage detected