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

Function validateResponse

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

Source from the content-addressed store, hash-verified

108 await validateResponse('/home', /yay home works/);
109
110 async function validateResponse(pathname: string, match: RegExp): Promise<void> {
111 const response = await fetch(new URL(pathname, `http://localhost:${port}`));
112 const text = await response.text();
113 assert.match(text, match);
114 assert.equal(response.status, 200);
115 }
116}
117
118async function modifyFileAndWaitUntilUpdated(

Callers 1

Calls 2

textMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected