Skip to content

Commit 1de5ddc

Browse files
committed
chore: fix test
1 parent 846a307 commit 1de5ddc

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

test/e2e/app-dir/app-static.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ describe('app-dir static/dynamic handling', () => {
198198
}
199199
})
200200

201-
usuallySkip('should honor dynamic = "force-static" correctly', async () => {
201+
it('should honor dynamic = "force-static" correctly', async () => {
202202
const res = await fetchViaHTTP(next.url, '/force-static/first')
203203
expect(res.status).toBe(200)
204204

test/e2e/app-dir/asset-prefix.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ describe('app-dir assetPrefix handling', () => {
3636
redirect: 'manual',
3737
},
3838
)
39-
expect(res.status).toBe(308)
40-
expect(res.headers.get('location')).toBe(next.url + '/a')
39+
// NTL - uses 301 instead of 308
40+
expect(res.status).toBe(301)
41+
expect(res.headers.get('location')).toBe('/a')
42+
43+
// expect(res.status).toBe(308)
44+
// expect(res.headers.get('location')).toBe(next.url + '/a')
4145
})
4246

4347
it('should render link', async () => {

0 commit comments

Comments
 (0)