summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar tony-sull <tony-sull@users.noreply.github.com> 2022-09-07 13:57:52 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-09-07 13:57:52 +0000
commitc080438b89beb0084f3fbfe99cf588a51cd721d9 (patch)
treebe9ff4d596db77e4f1ac037fe7265d5ad1549f47
parentdb70afdcd5b7d6b39c9953e88dbdadc5e3a93175 (diff)
downloadastro-c080438b89beb0084f3fbfe99cf588a51cd721d9.tar.gz
astro-c080438b89beb0084f3fbfe99cf588a51cd721d9.tar.zst
astro-c080438b89beb0084f3fbfe99cf588a51cd721d9.zip
[ci] format
-rw-r--r--packages/integrations/image/src/utils/paths.ts2
-rw-r--r--packages/integrations/image/test/image-ssg.test.js8
-rw-r--r--packages/integrations/image/test/picture-ssr-dev.test.js3
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',