summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/test/tailwindcss.test.js16
-rw-r--r--packages/integrations/tailwind/src/index.ts2
2 files changed, 5 insertions, 13 deletions
diff --git a/packages/astro/test/tailwindcss.test.js b/packages/astro/test/tailwindcss.test.js
index 96a82572e..bff025ffc 100644
--- a/packages/astro/test/tailwindcss.test.js
+++ b/packages/astro/test/tailwindcss.test.js
@@ -43,12 +43,8 @@ describe('Tailwind', () => {
);
// custom theme colors were included
- expect(bundledCSS, 'includes custom theme colors').to.match(
- /\.text-midnight{/
- );
- expect(bundledCSS, 'includes custom theme colors').to.match(
- /\.bg-dawn{/
- );
+ expect(bundledCSS, 'includes custom theme colors').to.match(/\.text-midnight{/);
+ expect(bundledCSS, 'includes custom theme colors').to.match(/\.bg-dawn{/);
});
it('maintains classes in HTML', async () => {
@@ -108,12 +104,8 @@ describe('Tailwind', () => {
expect(text, 'supports arbitrary value classes').to.match(/.font-\\[900\\]/);
// custom theme colors were included
- expect(text, 'includes custom theme colors').to.match(
- /\.text-midnight/
- );
- expect(text, 'includes custom theme colors').to.match(
- /\.bg-dawn/
- );
+ expect(text, 'includes custom theme colors').to.match(/\.text-midnight/);
+ expect(text, 'includes custom theme colors').to.match(/\.bg-dawn/);
});
it('maintains classes in HTML', async () => {
diff --git a/packages/integrations/tailwind/src/index.ts b/packages/integrations/tailwind/src/index.ts
index 9a0275f33..29c23c733 100644
--- a/packages/integrations/tailwind/src/index.ts
+++ b/packages/integrations/tailwind/src/index.ts
@@ -14,7 +14,7 @@ function getDefaultTailwindConfig(srcUrl: URL): TailwindConfig {
},
plugins: [],
content: [path.join(fileURLToPath(srcUrl), `**`, `*.{astro,html,js,jsx,svelte,ts,tsx,vue}`)],
- presets: undefined // enable Tailwind's default preset
+ presets: undefined, // enable Tailwind's default preset
});
}