(body: string, secret: string)
| 12 | const PAYLOAD = { status: 'SUCCESS', chatId: 'abc-123', data: { text: 'hello' } } |
| 13 | |
| 14 | function expectedSignature(body: string, secret: string): string { |
| 15 | return 'sha256=' + createHmac('sha256', secret).update(body).digest('hex') |
| 16 | } |
| 17 | |
| 18 | describe('dispatchCallback', () => { |
| 19 | beforeEach(() => { |
no test coverage detected