summaryrefslogtreecommitdiff
path: root/packages/integrations/image/test/image-ssr-dev.test.js
diff options
context:
space:
mode:
authorGravatar Gérald Gounot <gerald@gounot.eu> 2023-02-15 09:21:41 +0100
committerGravatar GitHub <noreply@github.com> 2023-02-15 09:21:41 +0100
commitac3649bb589a3ee1deab4ba73c06a36a45e2cee5 (patch)
tree1554b164878becfabd58c217688a206531959cca /packages/integrations/image/test/image-ssr-dev.test.js
parent87e0c10365528bf6b328e88d2d56d7ac15c14a2a (diff)
downloadastro-ac3649bb589a3ee1deab4ba73c06a36a45e2cee5.tar.gz
astro-ac3649bb589a3ee1deab4ba73c06a36a45e2cee5.tar.zst
astro-ac3649bb589a3ee1deab4ba73c06a36a45e2cee5.zip
Add support for SVG images to  `@astrojs/image` (#6118)
* @astrojs/image: add support for SVG images * @astrojs/image: add tests for SVG images * @astrojs/image: update README.md with SVG format info * Add minor changeset for @astrojs/image
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 fbaa6f965..186100b12 100644
--- a/packages/integrations/image/test/image-ssr-dev.test.js
+++ b/packages/integrations/image/test/image-ssr-dev.test.js
@@ -60,6 +60,13 @@ describe('SSR images - dev', function () {
contentType: 'image/png',
},
{
+ title: 'SVG image',
+ id: '#logo-svg',
+ url: toAstroImage('src/assets/logo.svg'),
+ query: { f: 'svg', w: '192', h: '256' },
+ contentType: 'image/svg+xml',
+ },
+ {
title: 'Inline imports',
id: '#inline',
url: toAstroImage('src/assets/social.jpg'),
@@ -182,6 +189,13 @@ describe('SSR images with subpath - dev', function () {
contentType: 'image/png',
},
{
+ title: 'SVG image',
+ id: '#logo-svg',
+ url: toAstroImage('src/assets/logo.svg'),
+ query: { f: 'svg', w: '192', h: '256' },
+ contentType: 'image/svg+xml',
+ },
+ {
title: 'Inline imports',
id: '#inline',
url: toAstroImage('src/assets/social.jpg'),