diff --git a/packages/integrations/image/src/utils/paths.ts b/packages/integrations/image/src/utils/paths.ts index 2f4109062..1f691f35a 100644 --- a/packages/integrations/image/src/utils/paths.ts +++ b/packages/integrations/image/src/utils/paths.ts @@ -41,7 +41,7 @@ export function propsToFilename(transform: TransformOptions) { const ext = extname(filename); filename = removeExtname(filename); - const outputExt = transform.format ? `.${transform.format}` : ext + const outputExt = transform.format ? `.${transform.format}` : ext; return `/${filename}_${shorthash(JSON.stringify(transform))}${outputExt}`; } diff --git a/packages/integrations/image/test/image-ssg.test.js b/packages/integrations/image/test/image-ssg.test.js index 386dc9b07..104624925 100644 --- a/packages/integrations/image/test/image-ssg.test.js +++ b/packages/integrations/image/test/image-ssg.test.js @@ -57,8 +57,8 @@ describe('SSG images - dev', function () { query: { w: '200', h: '300', - href: 'https://picsum.photos/200/300' - } + href: 'https://picsum.photos/200/300', + }, }, { title: 'Public images', @@ -138,8 +138,8 @@ describe('SSG images with subpath - dev', function () { query: { w: '200', h: '300', - href: 'https://picsum.photos/200/300' - } + href: 'https://picsum.photos/200/300', + }, }, { title: 'Public images', diff --git a/packages/integrations/image/test/picture-ssr-dev.test.js b/packages/integrations/image/test/picture-ssr-dev.test.js index fa465384d..e7e57628e 100644 --- a/packages/integrations/image/test/picture-ssr-dev.test.js +++ b/packages/integrations/image/test/picture-ssr-dev.test.js @@ -173,7 +173,8 @@ describe('SSR pictures with subpath - dev', function () { }, contentType: 'image/jpeg', alt: 'ipsum', - },, + }, + , { title: 'Public images', id: '#hero',