mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
* move `./tests/jit` to `./tests` * make tests consistent Abstracted a `run` function and some syntax highlighting helpers for `html`, `css` and `javascript`.
23 lines
445 B
JavaScript
23 lines
445 B
JavaScript
import { run, css } from './util/run'
|
|
|
|
test('relative purge paths', () => {
|
|
let config = {
|
|
content: ['./tests/relative-purge-paths.test.html'],
|
|
corePlugins: { preflight: false },
|
|
}
|
|
|
|
let input = css`
|
|
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
`
|
|
|
|
return run(input, config).then((result) => {
|
|
expect(result.css).toIncludeCss(css`
|
|
.font-bold {
|
|
font-weight: 700;
|
|
}
|
|
`)
|
|
})
|
|
})
|