Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Mar 26, 2024
1 parent de6d386 commit 2f29759
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
5 changes: 3 additions & 2 deletions test/e2e/app-dir/static-generation-status/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ createNextDescribe(
})

it('should render the page using redirect with status 307', async () => {
const { status } = await next.fetch('/redirect-page')
const { status } = await next.fetch('/redirect-page', {
redirect: 'manual',
})
expect(status).toBe(307)
})

it('should render the non existed route redirect with status 404', async () => {
expect((await next.fetch('/_not-found')).status).toBe(404)
expect((await next.fetch('/does-not-exist')).status).toBe(404)
})
}
Expand Down
12 changes: 0 additions & 12 deletions test/turbopack-build-tests-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6134,18 +6134,6 @@
"pending": [],
"flakey": [],
"runtimeError": false
},
"test/e2e/app-dir/static-generation-status/index.test.ts": {
"passed": [
"should render the page using notFound with status 404",
"should render the page using redirect with status 307"
],
"failed": [
"should render the non existed route redirect with status 404"
],
"pending": [],
"flakey": [],
"runtimeError": false
}
},
"rules": {
Expand Down

0 comments on commit 2f29759

Please sign in to comment.