MCPcopy
hub / github.com/github/docs / checkEvent

Function checkEvent

tests/routing/events.js:7–16  ·  view source on GitHub ↗
(data, code)

Source from the content-addressed store, hash-verified

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: {

Callers 1

events.jsFile · 0.85

Calls 1

postFunction · 0.90

Tested by

no test coverage detected