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 Jan 31, 2024
1 parent d4b8861 commit 84c100d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/astro/src/vite-plugin-markdown/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')}
Expand Down
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 @@ -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);
});

Expand Down

0 comments on commit 84c100d

Please sign in to comment.