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-30 17:27:56 +0000
committerGravatar GitHub <noreply@github.com> 2022-09-30 17:27:56 +0000
commit64a1d712efd3cc80c0b9aed9f2ead1487f8db07b (patch)
treed55e5abb6e91c1c855f33c3fba058e578077a0f4 /packages/integrations/image/test/image-ssr-dev.test.js
parentb5e25afa9423aa7ade559c28be010f788a857375 (diff)
downloadastro-64a1d712efd3cc80c0b9aed9f2ead1487f8db07b.tar.gz
astro-64a1d712efd3cc80c0b9aed9f2ead1487f8db07b.tar.zst
astro-64a1d712efd3cc80c0b9aed9f2ead1487f8db07b.zip
[@astrojs/image] fixes a bug in dev when <Image /> is used with no transformation props (#4933)
* fix: return the original file in dev if no image transforms were used * 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.js7
1 files changed, 7 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 e70f4af13..105f52717 100644
--- a/packages/integrations/image/test/image-ssr-dev.test.js
+++ b/packages/integrations/image/test/image-ssr-dev.test.js
@@ -33,6 +33,13 @@ describe('SSR images - dev', function () {
contentType: 'image/jpeg',
},
{
+ title: 'Local image no transforms',
+ id: '#no-transforms',
+ url: '/@astroimage/assets/social.jpg',
+ query: { },
+ contentType: 'image/jpeg',
+ },
+ {
title: 'Filename with spaces',
id: '#spaces',
url: '/@astroimage/assets/blog/introducing astro.jpg',