diff --git a/packages/astro/test/tailwindcss.test.js b/packages/astro/test/tailwindcss.test.js index 96a82572e9..bff025ffce 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 9a0275f33c..29c23c733c 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 }); }