From c080438b89beb0084f3fbfe99cf588a51cd721d9 Mon Sep 17 00:00:00 2001 From: tony-sull Date: Wed, 7 Sep 2022 13:57:52 +0000 Subject: [PATCH] [ci] format --- packages/integrations/image/src/utils/paths.ts | 2 +- packages/integrations/image/test/image-ssg.test.js | 8 ++++---- packages/integrations/image/test/picture-ssr-dev.test.js | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) 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',