MCPcopy Index your code
hub / github.com/angular/angular-cli / matchResponse

Function matchResponse

tests/e2e/tests/vite/ssr-base-href.ts:43–48  ·  view source on GitHub ↗
(url: string, match: RegExp)

Source from the content-addressed store, hash-verified

41}
42
43async function matchResponse(url: string, match: RegExp): Promise<void> {
44 const response = await fetch(url);
45 const text = await response.text();
46
47 assert.match(text, match);
48}

Callers 1

ssr-base-href.tsFile · 0.85

Calls 2

textMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected