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

Function validateResponse

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

Source from the content-addressed store, hash-verified

101 await validateResponse('/home', /yay home works/);
102
103 async function validateResponse(pathname: string, match: RegExp): Promise<void> {
104 const response = await fetch(new URL(pathname, `http://localhost:${port}`));
105 const text = await response.text();
106 assert.match(text, match);
107 assert.equal(response.status, 200);
108 }
109}
110
111async function modifyFileAndWaitUntilUpdated(

Callers 1

Calls 2

textMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected