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

Function validateResponse

tests/e2e/tests/vite/ssr-entry-h3.ts:94–99  ·  view source on GitHub ↗
(pathname: string, match: RegExp)

Source from the content-addressed store, hash-verified

92 await validateResponse('/home', /yay home works/);
93
94 async function validateResponse(pathname: string, match: RegExp): Promise<void> {
95 const response = await fetch(new URL(pathname, `http://localhost:${port}`));
96 const text = await response.text();
97 assert.match(text, match);
98 assert.equal(response.status, 200);
99 }
100}
101
102async function modifyFileAndWaitUntilUpdated(

Callers 1

ssr-entry-h3.tsFile · 0.70

Calls 2

textMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected