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

Function validateResponse

tests/e2e/tests/vite/ssr-new-dep-optimization.ts:55–59  ·  view source on GitHub ↗
(pathname: string, match: RegExp)

Source from the content-addressed store, hash-verified

53 await validateResponse('/', /Hello,/);
54
55 async function validateResponse(pathname: string, match: RegExp): Promise<void> {
56 const response = await fetch(new URL(pathname, `http://localhost:${port}`));
57 const text = await response.text();
58 assert.match(text, match);
59 }
60}

Callers 1

Calls 2

textMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected