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

Function verifyResponse

tests/e2e/tests/basic/serve.ts:19–25  ·  view source on GitHub ↗
(port: number)

Source from the content-addressed store, hash-verified

17}
18
19async function verifyResponse(port: number): Promise<void> {
20 const indexResponse = await fetch(`http://localhost:${port}/`);
21 assert.match(await indexResponse.text(), /<app-root><\/app-root>/);
22
23 const assetResponse = await fetch(`http://localhost:${port}/favicon.ico`);
24 assert(assetResponse.ok, 'Expected favicon asset to be available.');
25}

Callers 1

serve.tsFile · 0.85

Calls 2

textMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected