preflight.test.js 505 B

12345678910111213141516171819202122
  1. import { run, html, css } from './util/run'
  2. it('preflight has a correct border color fallback', () => {
  3. let config = {
  4. content: [{ raw: html`<div class="border-black"></div>` }],
  5. theme: {
  6. borderColor: ({ theme }) => theme('colors'),
  7. },
  8. plugins: [],
  9. corePlugins: { preflight: true },
  10. }
  11. let input = css`
  12. @tailwind base;
  13. @tailwind utilities;
  14. `
  15. return run(input, config).then((result) => {
  16. expect(result.css).toContain(`border-color: currentColor;`)
  17. })
  18. })