(data, code)
| 5 | jest.setTimeout(60 * 1000) |
| 6 | |
| 7 | async function checkEvent(data, code) { |
| 8 | const body = JSON.stringify(data) |
| 9 | const res = await post('/api/events', { |
| 10 | body, |
| 11 | headers: { |
| 12 | 'content-type': 'application/json', |
| 13 | }, |
| 14 | }) |
| 15 | expect(res.statusCode).toBe(code) |
| 16 | } |
| 17 | |
| 18 | const baseExample = { |
| 19 | context: { |