[ci] yarn format

This commit is contained in:
matthewp 2021-07-28 18:08:27 +00:00 committed by GitHub Actions
parent 23b0d2d345
commit 189098b6e5
2 changed files with 3 additions and 3 deletions

View file

@ -301,8 +301,8 @@ export function findDeps(html: string, { astroConfig, srcPath }: { astroConfig:
$('img[srcset]').each((_i, el) => {
const srcset = $(el).attr('srcset') || '';
const sources = srcset.split(',');
const srces = sources.map(s => s.trim().split(' ')[0]);
for(const src of srces) {
const srces = sources.map((s) => s.trim().split(' ')[0]);
for (const src of srces) {
pageDeps.images.add(getDistPath(src, { astroConfig, srcPath }));
}
});

View file

@ -22,4 +22,4 @@ Assets('srcset is copied in the build', async ({ build, readFile }) => {
assert.ok(threeX, 'build the 3x image');
});
Assets.run();
Assets.run();