summaryrefslogtreecommitdiff
path: root/packages/integrations/image/test/image-ssr-dev.test.js
diff options
context:
space:
mode:
authorGravatar Tony Sullivan <tony.f.sullivan@outlook.com> 2022-09-07 13:56:07 +0000
committerGravatar GitHub <noreply@github.com> 2022-09-07 13:56:07 +0000
commitdb70afdcd5b7d6b39c9953e88dbdadc5e3a93175 (patch)
treef051d1572bfab8023bfd7406a8299884f23e983a /packages/integrations/image/test/image-ssr-dev.test.js
parent6d845c353d5688f30787c4361f86c605fb638dd9 (diff)
downloadastro-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.js22
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',