(token: string, slug: string)
| 74 | }; |
| 75 | |
| 76 | const addIntegration = (token: string, slug: string) => |
| 77 | handler( |
| 78 | new Request(`${BASE}/api/openapi/specs`, { |
| 79 | method: "POST", |
| 80 | headers: { |
| 81 | authorization: `Bearer ${token}`, |
| 82 | "content-type": "application/json", |
| 83 | }, |
| 84 | body: JSON.stringify({ |
| 85 | spec: { kind: "blob", value: TINY_SPEC }, |
| 86 | slug, |
| 87 | baseUrl: "", |
| 88 | }), |
| 89 | }), |
| 90 | ); |
| 91 | |
| 92 | const createConnection = ( |
| 93 | token: string, |
no test coverage detected