Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored and astrobot-houston committed Jun 21, 2024
1 parent b6afe6a commit ae3b096
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/astro/test/core-image.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
3 changes: 2 additions & 1 deletion packages/markdown/remark/src/remark-collect-images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
});
Expand Down

0 comments on commit ae3b096

Please sign in to comment.