mirror of
https://github.com/withastro/astro.git
synced 2025-01-13 22:11:20 -05:00
[ci] format
This commit is contained in:
parent
d4b886141b
commit
84c100dd33
2 changed files with 4 additions and 4 deletions
|
@ -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')}
|
||||
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue