mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
19 lines
648 B
JavaScript
19 lines
648 B
JavaScript
import resolveConfig from '../src/public/resolve-config'
|
|
import { createContext } from '../src/lib/setupContextUtils'
|
|
|
|
it('should generate every possible class, without variants', () => {
|
|
let config = {}
|
|
|
|
let context = createContext(resolveConfig(config))
|
|
expect(context.getClassList()).toBeInstanceOf(Array)
|
|
|
|
// Verify we have a `container` for the 'components' section.
|
|
expect(context.getClassList()).toContain('container')
|
|
|
|
// Verify we handle the DEFAULT case correctly
|
|
expect(context.getClassList()).toContain('border')
|
|
|
|
// Verify we handle negative values correctly
|
|
expect(context.getClassList()).toContain('-inset-1/4')
|
|
})
|