(token: string)
| 111 | ); |
| 112 | |
| 113 | const connectionAddresses = async (token: string): Promise<string[]> => { |
| 114 | const res = await handler( |
| 115 | new Request(`${BASE}/api/connections`, { |
| 116 | headers: { authorization: `Bearer ${token}` }, |
| 117 | }), |
| 118 | ); |
| 119 | expect(res.status).toBe(200); |
| 120 | const body = (await res.json()) as ReadonlyArray<{ address: string }>; |
| 121 | return body.map((c) => c.address); |
| 122 | }; |
| 123 | |
| 124 | const runCode = async (token: string, code: string) => { |
| 125 | const res = await handler( |
no test coverage detected