diff options
author | 2022-09-07 13:56:07 +0000 | |
---|---|---|
committer | 2022-09-07 13:56:07 +0000 | |
commit | db70afdcd5b7d6b39c9953e88dbdadc5e3a93175 (patch) | |
tree | f051d1572bfab8023bfd7406a8299884f23e983a /packages/integrations/image/test/image-ssr-dev.test.js | |
parent | 6d845c353d5688f30787c4361f86c605fb638dd9 (diff) | |
download | astro-db70afdcd5b7d6b39c9953e88dbdadc5e3a93175.tar.gz astro-db70afdcd5b7d6b39c9953e88dbdadc5e3a93175.tar.zst astro-db70afdcd5b7d6b39c9953e88dbdadc5e3a93175.zip |
[@astrojs/image] Fixes a regression in remote image filenames (#4649)
* fixes a bug in filename creation for remote images without a file extension
* chore: add changeset
Diffstat (limited to 'packages/integrations/image/test/image-ssr-dev.test.js')
-rw-r--r-- | packages/integrations/image/test/image-ssr-dev.test.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/integrations/image/test/image-ssr-dev.test.js b/packages/integrations/image/test/image-ssr-dev.test.js index a280268d0..2251bf071 100644 --- a/packages/integrations/image/test/image-ssr-dev.test.js +++ b/packages/integrations/image/test/image-ssr-dev.test.js @@ -59,6 +59,17 @@ describe('SSR images - dev', function () { contentType: 'image/webp', }, { + title: 'Remote wihtout file extension', + id: '#ipsum', + url: '/_image', + query: { + w: '200', + h: '300', + href: 'https://picsum.photos/200/300', + }, + contentType: 'image/jpeg', + }, + { title: 'Public images', id: '#hero', url: '/_image', @@ -150,6 +161,17 @@ describe('SSR images with subpath - dev', function () { contentType: 'image/webp', }, { + title: 'Remote wihtout file extension', + id: '#ipsum', + url: '/_image', + query: { + w: '200', + h: '300', + href: 'https://picsum.photos/200/300', + }, + contentType: 'image/jpeg', + }, + { title: 'Public images', id: '#hero', url: '/_image', |