0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

[ci] format

This commit is contained in:
matthewp 2022-12-06 22:14:29 +00:00 committed by fredkbot
parent 795f00f73c
commit a72a131e22
2 changed files with 6 additions and 7 deletions

View file

@ -15,7 +15,7 @@ export function* walkParentInfos(
const info = ctx.getModuleInfo(id);
if (info) {
if (childId) {
order += info.importedIds.indexOf(childId)
order += info.importedIds.indexOf(childId);
}
yield [info, depth, order];
}

View file

@ -43,7 +43,6 @@ describe('CSS ordering - import order with layouts', () => {
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)));
let specialButtonCSS = -1;
@ -56,7 +55,7 @@ describe('CSS ordering - import order with layouts', () => {
}
}
expect(globalCSS).to.equal(0, 'global css sorted on top')
expect(globalCSS).to.equal(0, 'global css sorted on top');
expect(specialButtonCSS).to.equal(1, 'component level css sorted last');
});
});