From 86d5479c6f858448eecfa85bec7565cc6f69d463 Mon Sep 17 00:00:00 2001 From: matthewp Date: Wed, 8 Feb 2023 15:17:45 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/build/graph.ts | 4 ++-- packages/astro/test/css-order-import.test.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/astro/src/core/build/graph.ts b/packages/astro/src/core/build/graph.ts index 5b4b2107c..6d7335c09 100644 --- a/packages/astro/src/core/build/graph.ts +++ b/packages/astro/src/core/build/graph.ts @@ -17,7 +17,7 @@ export function* walkParentInfos( if (info) { if (childId) { const idx = info.importedIds.indexOf(childId); - if(idx === -1) { + if (idx === -1) { // Dynamic imports come after all normal imports. So first add the number of normal imports. order += info.importedIds.length; // Then add on the dynamic ones. @@ -26,7 +26,7 @@ export function* walkParentInfos( order += idx; } } - + yield [info, depth, order]; } if (until?.(id)) return; diff --git a/packages/astro/test/css-order-import.test.js b/packages/astro/test/css-order-import.test.js index b93822a69..01b6f5497 100644 --- a/packages/astro/test/css-order-import.test.js +++ b/packages/astro/test/css-order-import.test.js @@ -120,7 +120,9 @@ describe('CSS ordering - import order', () => { it('dynamic imports taken into account', async () => { let html = await fixture.readFile('/one/index.html'); - const content = await Promise.all(getLinks(html).map((href) => getLinkContent(href, fixture))); + const content = await Promise.all( + getLinks(html).map((href) => getLinkContent(href, fixture)) + ); let [link1, link2] = content; expect(link1.css).to.contain('aliceblue'); expect(link2.css).to.contain('yellow');