Skip to content

Commit

Permalink
Add old test back
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Aug 12, 2021
1 parent c74923c commit 9136c59
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/integration/image-optimizer/test/index.test.js
Expand Up @@ -55,6 +55,12 @@ function runTests({ w, isDev, domains = [], ttl, isSharp }) {
expect(await res.text()).toMatch(/Image Optimizer Home/m)
})

it('should handle non-ascii characters in image url', async () => {
const query = { w, q: 90, url: '/äöü.png' }
const res = await fetchViaHTTP(appPort, '/_next/image', query, {})
expect(res.status).toBe(200)
})

it('should maintain animated gif', async () => {
const query = { w, q: 90, url: '/animated.gif' }
const res = await fetchViaHTTP(appPort, '/_next/image', query, {})
Expand Down

0 comments on commit 9136c59

Please sign in to comment.