core/api/tailwindcss-master/__tests__/prefixNegativeModifiers.tes...

14 lines
529 B
JavaScript
Raw Normal View History

2022-12-11 13:55:49 +05:00
import prefixNegativeModifiers from '../src/util/prefixNegativeModifiers'
test('it does not prefix classes using standard syntax', () => {
expect(prefixNegativeModifiers('base', 'modifier')).toEqual('base-modifier')
})
test('it prefixes classes using negative syntax', () => {
expect(prefixNegativeModifiers('base', '-modifier')).toEqual('-base-modifier')
})
test('it prefixes classes and omits suffix using default negative syntax', () => {
expect(prefixNegativeModifiers('base', '-')).toEqual('-base')
})