(port: number)
| 17 | } |
| 18 | |
| 19 | async 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 | } |