[ci] yarn format

This commit is contained in:
natemoo-re 2021-06-19 00:57:20 +00:00 committed by GitHub Actions
parent 2671b6f9cc
commit f04b82d47e
2 changed files with 2 additions and 2 deletions

View file

@ -254,7 +254,7 @@ export default function transformStyles({ compileOptions, filename, fileID }: Tr
}, },
async finalize() { async finalize() {
const styleTransforms = await Promise.all(styleTransformPromises); const styleTransforms = await Promise.all(styleTransformPromises);
// If we DO have styles, let's inject the scoped `class` attribute // If we DO have styles, let's inject the scoped `class` attribute
// Otherwise, our final optimization is easier if we skip this // Otherwise, our final optimization is easier if we skip this
if (styleTransforms.length > 0) { if (styleTransforms.length > 0) {

View file

@ -130,7 +130,7 @@ StylesSSR('Astro scoped styles skipped without <style>', async ({ runtime }) =>
const result = await runtime.load('/'); const result = await runtime.load('/');
const $ = doc(result.contents); const $ = doc(result.contents);
assert.type($('#no-scope').attr('class'), 'undefined', `Astro component without <style> should not include scoped class`) assert.type($('#no-scope').attr('class'), 'undefined', `Astro component without <style> should not include scoped class`);
}); });
StylesSSR.run(); StylesSSR.run();