mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This header isn't always able to be overridden so we shouldn't be asserting it specifically in our tests. x-ref: [slack thread](https://vercel.slack.com/archives/C04KC8A53T7/p1727138501597279?thread_ts=1727137032.335159&cid=C04KC8A53T7)
14 lines
394 B
TypeScript
14 lines
394 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('no-duplicate-headers-next-config', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
})
|
|
|
|
it('should prioritise headers in middleware for static assets', async () => {
|
|
const res = await next.fetch('favicon.ico')
|
|
expect(res.status).toBe(200)
|
|
expect(res.headers.get('cache-control')).toBe('max-age=1234')
|
|
})
|
|
})
|