(token: string, code: string)
| 122 | }; |
| 123 | |
| 124 | const runCode = async (token: string, code: string) => { |
| 125 | const res = await handler( |
| 126 | new Request(`${BASE}/api/executions`, { |
| 127 | method: "POST", |
| 128 | headers: { |
| 129 | authorization: `Bearer ${token}`, |
| 130 | "content-type": "application/json", |
| 131 | }, |
| 132 | body: JSON.stringify({ code }), |
| 133 | }), |
| 134 | ); |
| 135 | return res; |
| 136 | }; |
| 137 | |
| 138 | test("multiple accounts share one org but isolate per-user connections", async () => { |
| 139 | const alice = await signUp("alice@multi.test"); |
no test coverage detected