0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-13 22:11:20 -05:00

[ci] format

This commit is contained in:
Oliver Speir 2024-01-31 14:00:11 +00:00 committed by astrobot-houston
parent d4b886141b
commit 84c100dd33
2 changed files with 4 additions and 4 deletions

View file

@ -5,8 +5,8 @@ export function getMarkdownCodeForImages(imagePaths: MarkdownImagePath[], html:
import { getImage } from "astro:assets";
${imagePaths
.map((entry) => {
const prefix = entry.raw.includes('/') ? '' : './';
return `import Astro__${entry.safeName} from ${JSON.stringify(prefix + entry.raw)};`;
const prefix = entry.raw.includes('/') ? '' : './';
return `import Astro__${entry.safeName} from ${JSON.stringify(prefix + entry.raw)};`;
})
.join('\n')}

View file

@ -485,8 +485,8 @@ describe('astro:image', () => {
it('image in cc folder is processed', () => {
let $imgs = $('img');
let $blogfolderimg = $($imgs[7]);
expect($blogfolderimg.attr('src')).to.include("blogfolder.jpg");
let $blogfolderimg = $($imgs[7]);
expect($blogfolderimg.attr('src')).to.include('blogfolder.jpg');
expect($blogfolderimg.attr('src').endsWith('f=webp')).to.equal(true);
});