Skip to content

Commit

Permalink
Add test for external rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Jun 29, 2021
1 parent c235ca5 commit d88a682
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/integration/image-optimizer/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,9 @@ describe('Image Optimizer', () => {
const res = await fetchViaHTTP(appPort, '/_next/image', query, opts)
expect(res.status).toBe(200)
expect(res.headers.get('Content-Type')).toBe('image/webp')
expect(res.headers.get('Cache-Control')).toBe(
'public, max-age=31536000, must-revalidate'
)
await expectWidth(res, 64)
})
})
Expand Down

0 comments on commit d88a682

Please sign in to comment.