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

Function validateResponse

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

Source from the content-addressed store, hash-verified

84 await validateResponse('/home', /yay home works/);
85
86 async function validateResponse(pathname: string, match: RegExp): Promise<void> {
87 const response = await fetch(new URL(pathname, `http://localhost:${port}`));
88 const text = await response.text();
89 assert.match(text, match);
90 assert.equal(response.status, 200);
91 }
92}
93
94async function modifyFileAndWaitUntilUpdated(

Callers 1

ssr-entry-hono.tsFile · 0.70

Calls 2

textMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected