fix: fix indentation, export ClassValue, add object-syntax test
This commit is contained in:
@@ -22,6 +22,12 @@ describe('cn', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('object syntax', () => {
|
||||
it('includes classes with truthy object values', () => {
|
||||
expect(cn({ foo: true, bar: false })).toBe('foo')
|
||||
})
|
||||
})
|
||||
|
||||
describe('tailwind conflict resolution', () => {
|
||||
it('last padding wins', () => {
|
||||
expect(cn('px-2', 'px-4')).toBe('px-4')
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
export { cn } from './cn'
|
||||
export type { ClassValue } from 'clsx'
|
||||
|
||||
Reference in New Issue
Block a user