mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
28 lines
650 B
JavaScript
28 lines
650 B
JavaScript
import * as path from 'path'
|
|
import { run, css, defaults } from './util/run'
|
|
|
|
it('should be possible to use negated content patterns', () => {
|
|
let config = {
|
|
content: [
|
|
path.resolve(__dirname, './negated-content-*.test.html'),
|
|
'!' + path.resolve(__dirname, './negated-content-ignore.test.html'),
|
|
],
|
|
corePlugins: { preflight: false },
|
|
}
|
|
|
|
let input = css`
|
|
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
`
|
|
|
|
return run(input, config).then((result) => {
|
|
expect(result.css).toMatchFormattedCss(css`
|
|
${defaults}
|
|
.uppercase {
|
|
text-transform: uppercase;
|
|
}
|
|
`)
|
|
})
|
|
})
|