diff options
Diffstat (limited to 'packages/integrations/image/test/image-ssg.test.js')
-rw-r--r-- | packages/integrations/image/test/image-ssg.test.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/integrations/image/test/image-ssg.test.js b/packages/integrations/image/test/image-ssg.test.js index 5bc1c1e0d..12b3ffea9 100644 --- a/packages/integrations/image/test/image-ssg.test.js +++ b/packages/integrations/image/test/image-ssg.test.js @@ -53,6 +53,12 @@ describe('SSG 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' }, + }, + { title: 'Inline imports', id: '#inline', url: toAstroImage('src/assets/social.jpg'), @@ -158,6 +164,12 @@ describe('SSG 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' }, + }, + { title: 'Inline imports', id: '#inline', url: toAstroImage('src/assets/social.jpg'), @@ -264,6 +276,12 @@ describe('SSG images - build', function () { size: { type: 'png', width: 2024, height: 1012 }, }, { + title: 'SVG image', + id: '#logo-svg', + regex: /^\/_astro\/logo.\w{8}_\w{4,10}.svg/, + size: { width: 192, height: 256, type: 'svg' }, + }, + { title: 'Inline imports', id: '#inline', regex: /^\/_astro\/social.\w{8}_\w{4,10}.jpg/, @@ -352,6 +370,12 @@ describe('SSG images with subpath - build', function () { size: { type: 'png', width: 2024, height: 1012 }, }, { + title: 'SVG image', + id: '#logo-svg', + regex: /^\/docs\/_astro\/logo.\w{8}_\w{4,10}.svg/, + size: { width: 192, height: 256, type: 'svg' }, + }, + { title: 'Inline imports', id: '#inline', regex: /^\/docs\/_astro\/social.\w{8}_\w{4,10}.jpg/, |