(token: string)
| 63 | }; |
| 64 | |
| 65 | const orgIdOf = async (token: string): Promise<string> => { |
| 66 | const res = await handler( |
| 67 | new Request(`${BASE}/api/account/me`, { |
| 68 | headers: { authorization: `Bearer ${token}` }, |
| 69 | }), |
| 70 | ); |
| 71 | expect(res.status).toBe(200); |
| 72 | const body = (await res.json()) as { organization: { id: string } }; |
| 73 | return body.organization.id; |
| 74 | }; |
| 75 | |
| 76 | const addIntegration = (token: string, slug: string) => |
| 77 | handler( |
no test coverage detected