MCPcopy Create free account
hub / github.com/cloudflare/wildebeest / assertCache

Function assertCache

backend/test/utils.ts:49–52  ·  view source on GitHub ↗
(response: Response, maxge: number)

Source from the content-addressed store, hash-verified

47}
48
49export 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
54export async function streamToArrayBuffer(stream: ReadableStream) {
55 let result = new Uint8Array(0)

Callers 2

mastodon.spec.tsFile · 0.90
webfinger.spec.tsFile · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected