From 189098b6e569758d67d221162c76aa2c032e1a38 Mon Sep 17 00:00:00 2001 From: matthewp Date: Wed, 28 Jul 2021 18:08:27 +0000 Subject: [PATCH] [ci] yarn format --- packages/astro/src/build.ts | 4 ++-- packages/astro/test/astro-assets.test.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/astro/src/build.ts b/packages/astro/src/build.ts index 4fd22f1bf..28e164f78 100644 --- a/packages/astro/src/build.ts +++ b/packages/astro/src/build.ts @@ -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 })); } }); diff --git a/packages/astro/test/astro-assets.test.js b/packages/astro/test/astro-assets.test.js index c82d34aa6..6299b8653 100644 --- a/packages/astro/test/astro-assets.test.js +++ b/packages/astro/test/astro-assets.test.js @@ -22,4 +22,4 @@ Assets('srcset is copied in the build', async ({ build, readFile }) => { assert.ok(threeX, 'build the 3x image'); }); -Assets.run(); \ No newline at end of file +Assets.run();