Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and astrobot-houston committed Sep 28, 2022
1 parent 01c1aaa commit 24bad5a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/astro/test/css-order-import.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('CSS ordering - import order', () => {
});

/**
*
* @param {string} html
*
* @param {string} html
* @returns {string[]}
*/
function getLinks(html) {
Expand Down Expand Up @@ -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');
Expand All @@ -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');
Expand Down

0 comments on commit 24bad5a

Please sign in to comment.