(urlPath, expectedAsPath)
| 20 | let stdout = '' |
| 21 | |
| 22 | const checkAsPath = async (urlPath, expectedAsPath) => { |
| 23 | const html = await renderViaHTTP(appPort, urlPath) |
| 24 | const $ = cheerio.load(html) |
| 25 | const asPath = $('#as-path').text() |
| 26 | |
| 27 | expect(asPath).toBe(expectedAsPath) |
| 28 | } |
| 29 | |
| 30 | const runTests = () => { |
| 31 | it('should render with correct asPath with /_next/data /index requested', async () => { |