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

Function assertJSON

backend/test/utils.ts:45–47  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

43}
44
45export function assertJSON(response: Response) {
46 assert.equal(response.headers.get('content-type'), 'application/json; charset=utf-8')
47}
48
49export function assertCache(response: Response, maxge: number) {
50 assert(response.headers.has('cache-control'))

Callers 10

mastodon.spec.tsFile · 0.90
accounts.spec.tsFile · 0.90
oauth.spec.tsFile · 0.90
media.spec.tsFile · 0.90
trends.spec.tsFile · 0.90
apps.spec.tsFile · 0.90
timelines.spec.tsFile · 0.90
statuses.spec.tsFile · 0.90
search.spec.tsFile · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected