From ae3b0968925251e2c56b624c51ff72270d4241ca Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Fri, 21 Jun 2024 16:14:12 +0000 Subject: [PATCH] [ci] format --- packages/astro/test/core-image.test.js | 4 ++-- packages/markdown/remark/src/remark-collect-images.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/astro/test/core-image.test.js b/packages/astro/test/core-image.test.js index abb3326ef154..0e06ab9cd349 100644 --- a/packages/astro/test/core-image.test.js +++ b/packages/astro/test/core-image.test.js @@ -489,10 +489,10 @@ describe('astro:image', () => { $ = cheerio.load(html); let $img = $('img'); - assert.equal($img.length, 3) + assert.equal($img.length, 3); $img.each((_, el) => { assert.equal(el.attribs.src?.startsWith('/_image'), true); - }) + }); }); it('properly handles remote images', async () => { diff --git a/packages/markdown/remark/src/remark-collect-images.ts b/packages/markdown/remark/src/remark-collect-images.ts index 676875b59dad..22774d5f198c 100644 --- a/packages/markdown/remark/src/remark-collect-images.ts +++ b/packages/markdown/remark/src/remark-collect-images.ts @@ -16,7 +16,8 @@ export function remarkCollectImages() { if (node.type === 'imageReference') { const imageDefinition = definition(node.identifier); if (imageDefinition) { - if (shouldOptimizeImage(imageDefinition.url)) imagePaths.add(decodeURI(imageDefinition.url)); + if (shouldOptimizeImage(imageDefinition.url)) + imagePaths.add(decodeURI(imageDefinition.url)); } } });