GET one dashboard endpoint, as the signed-in page does.
(pathAndQuery: string)
| 142 | |
| 143 | /** GET one dashboard endpoint, as the signed-in page does. */ |
| 144 | async function api(pathAndQuery: string): Promise<Row> { |
| 145 | const result = await handleApi(env, new URL(`https://stats.test${pathAndQuery}`)); |
| 146 | expect(result.status ?? 200).toBe(200); |
| 147 | return result.body as Row; |
| 148 | } |
| 149 | |
| 150 | /** |
| 151 | * One cron invocation at `iso`. `chunkMs` is the wall-clock time each legacy-usage |
no test coverage detected