(response: Response, maxge: number)
| 47 | } |
| 48 | |
| 49 | export function assertCache(response: Response, maxge: number) { |
| 50 | assert(response.headers.has('cache-control')) |
| 51 | assert(response.headers.get('cache-control')!.includes('max-age=' + maxge)) |
| 52 | } |
| 53 | |
| 54 | export async function streamToArrayBuffer(stream: ReadableStream) { |
| 55 | let result = new Uint8Array(0) |
no test coverage detected