summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2022-09-28 22:14:18 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-09-28 22:14:18 +0000
commit24bad5a0ad6e3b64d9209aecffd8d0e9181135ad (patch)
tree65da07819919ecc3ca92fce7900a0b00cb4a5652
parent01c1aaa00397c7fdc7a3ef7fb0212eb43aad6238 (diff)
downloadastro-24bad5a0ad6e3b64d9209aecffd8d0e9181135ad.tar.gz
astro-24bad5a0ad6e3b64d9209aecffd8d0e9181135ad.tar.zst
astro-24bad5a0ad6e3b64d9209aecffd8d0e9181135ad.zip
[ci] format
-rw-r--r--packages/astro/test/css-order-import.test.js12
1 files 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');