From 24bad5a0ad6e3b64d9209aecffd8d0e9181135ad Mon Sep 17 00:00:00 2001 From: matthewp Date: Wed, 28 Sep 2022 22:14:18 +0000 Subject: [PATCH] [ci] format --- packages/astro/test/css-order-import.test.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/astro/test/css-order-import.test.js b/packages/astro/test/css-order-import.test.js index 91cecadab..09f54a0e6 100644 --- a/packages/astro/test/css-order-import.test.js +++ b/packages/astro/test/css-order-import.test.js @@ -12,8 +12,8 @@ describe('CSS ordering - import order', () => { }); /** - * - * @param {string} html + * + * @param {string} html * @returns {string[]} */ function getLinks(html) { @@ -84,9 +84,7 @@ describe('CSS ordering - import order', () => { it('Page level CSS is defined lower in the page', async () => { let html = await fixture.readFile('/index.html'); - const content = await Promise.all( - getLinks(html).map((href) => getLinkContent(href)) - ); + const content = await Promise.all(getLinks(html).map((href) => getLinkContent(href))); const [{ css }] = content; let idx1 = css.indexOf('salmon'); @@ -98,9 +96,7 @@ describe('CSS ordering - import order', () => { it('import order is depth-first', async () => { let html = await fixture.readFile('/component/index.html'); - const content = await Promise.all( - getLinks(html).map((href) => getLinkContent(href)) - ); + const content = await Promise.all(getLinks(html).map((href) => getLinkContent(href))); const [{ css }] = content; let idx1 = css.indexOf('whitesmoke');