Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Mar 9, 2022
1 parent 3df4b60 commit 115fec5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default async function basic(context, { env }) {

it('should render 500 error correctly', async () => {
const errPaths = ['/err', '/err/render']
errPaths.forEach(async (pagePath) => {
const promises = errPaths.map(async (pagePath) => {
const html = await renderViaHTTP(context.appPort, pagePath)
if (env === 'dev') {
// In dev mode it should show the error popup.
Expand All @@ -47,6 +47,7 @@ export default async function basic(context, { env }) {
expect(html).toContain('custom-500-page')
}
})
await Promise.all(promises)
})

it('should render fallback if error raised from suspense during streaming', async () => {
Expand Down

0 comments on commit 115fec5

Please sign in to comment.