From 9136c598ab69edbaa896252e140aa5ddd41b5f3a Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 12 Aug 2021 19:14:25 -0400 Subject: [PATCH] Add old test back --- test/integration/image-optimizer/test/index.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration/image-optimizer/test/index.test.js b/test/integration/image-optimizer/test/index.test.js index 80731b6b7305fa9..9faab437aa3d7fd 100644 --- a/test/integration/image-optimizer/test/index.test.js +++ b/test/integration/image-optimizer/test/index.test.js @@ -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, {})