diff options
author | 2023-02-15 09:21:41 +0100 | |
---|---|---|
committer | 2023-02-15 09:21:41 +0100 | |
commit | ac3649bb589a3ee1deab4ba73c06a36a45e2cee5 (patch) | |
tree | 1554b164878becfabd58c217688a206531959cca /packages/integrations/image/test/image-ssr-dev.test.js | |
parent | 87e0c10365528bf6b328e88d2d56d7ac15c14a2a (diff) | |
download | astro-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.js | 14 |
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'), |