diff options
author | 2021-06-19 00:57:20 +0000 | |
---|---|---|
committer | 2021-06-19 00:57:20 +0000 | |
commit | f04b82d47ea37a5e6bdfc8a125c9c42d170e6072 (patch) | |
tree | dcedfef07a646ed379af80e6e2152da1fc5ab7c4 | |
parent | 2671b6f9cc957197107780f0102530d47f6010b3 (diff) | |
download | astro-f04b82d47ea37a5e6bdfc8a125c9c42d170e6072.tar.gz astro-f04b82d47ea37a5e6bdfc8a125c9c42d170e6072.tar.zst astro-f04b82d47ea37a5e6bdfc8a125c9c42d170e6072.zip |
[ci] yarn format
-rw-r--r-- | packages/astro/src/compiler/transform/styles.ts | 2 | ||||
-rw-r--r-- | packages/astro/test/astro-styles-ssr.test.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/src/compiler/transform/styles.ts b/packages/astro/src/compiler/transform/styles.ts index 9913bc809..10d43af53 100644 --- a/packages/astro/src/compiler/transform/styles.ts +++ b/packages/astro/src/compiler/transform/styles.ts @@ -254,7 +254,7 @@ export default function transformStyles({ compileOptions, filename, fileID }: Tr }, async finalize() { const styleTransforms = await Promise.all(styleTransformPromises); - + // If we DO have styles, let's inject the scoped `class` attribute // Otherwise, our final optimization is easier if we skip this if (styleTransforms.length > 0) { diff --git a/packages/astro/test/astro-styles-ssr.test.js b/packages/astro/test/astro-styles-ssr.test.js index 03d94ebde..7c6760672 100644 --- a/packages/astro/test/astro-styles-ssr.test.js +++ b/packages/astro/test/astro-styles-ssr.test.js @@ -130,7 +130,7 @@ StylesSSR('Astro scoped styles skipped without <style>', async ({ runtime }) => const result = await runtime.load('/'); 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(); |