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-01 20:31:53 +0000
committerGravatar GitHub <noreply@github.com> 2022-09-01 20:31:53 +0000
commit56f83be92a6417bb1cbb88dd58c3dcaf5177b9b6 (patch)
treecdd1dbcd0a502ccd0d032640c1af3f8c12998dd8 /packages/integrations/image/test/image-ssr-dev.test.js
parent9d86113114591edb697df2ca122c50294a812c20 (diff)
downloadastro-56f83be92a6417bb1cbb88dd58c3dcaf5177b9b6.tar.gz
astro-56f83be92a6417bb1cbb88dd58c3dcaf5177b9b6.tar.zst
astro-56f83be92a6417bb1cbb88dd58c3dcaf5177b9b6.zip
Fix: [@astrojs/image] handle filenames with spaces (#4593)
* fix: decode file URLs to handle filenames with spaces * chore: add changeset
Diffstat (limited to '')
-rw-r--r--packages/integrations/image/test/image-ssr-dev.test.js14
1 files changed, 14 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 c34973de9..a280268d0 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: 'Filename with spaces',
+ id: '#spaces',
+ url: '/@astroimage/assets/blog/introducing astro.jpg',
+ query: { f: 'webp', w: '768', h: '414' },
+ contentType: 'image/webp',
+ },
+ {
title: 'Inline imports',
id: '#inline',
url: '/@astroimage/assets/social.jpg',
@@ -117,6 +124,13 @@ describe('SSR images with subpath - dev', function () {
contentType: 'image/jpeg',
},
{
+ title: 'Filename with spaces',
+ id: '#spaces',
+ url: '/@astroimage/assets/blog/introducing astro.jpg',
+ query: { f: 'webp', w: '768', h: '414' },
+ contentType: 'image/webp',
+ },
+ {
title: 'Inline imports',
id: '#inline',
url: '/@astroimage/assets/social.jpg',