mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
18 lines
589 B
TypeScript
18 lines
589 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('app dir - metadata font', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
})
|
|
|
|
it('should handle custom fonts in both edge and nodejs runtime', async () => {
|
|
const resOgEdge = await next.fetch('/font/opengraph-image')
|
|
const resOgNodejs = await next.fetch('/font/opengraph-image2')
|
|
|
|
expect(resOgEdge.status).toBe(200)
|
|
expect(resOgEdge.headers.get('content-type')).toBe('image/png')
|
|
expect(resOgNodejs.status).toBe(200)
|
|
expect(resOgNodejs.headers.get('content-type')).toBe('image/png')
|
|
})
|
|
})
|