mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-22 16:00:39 +01:00
feat(module)!: migrate to reka-ui (#2448)
This commit is contained in:
@@ -13,7 +13,6 @@ describe('PinInput', () => {
|
||||
|
||||
it.each([
|
||||
// Props
|
||||
['with as', { props: { as: 'span' } }],
|
||||
['with modelValue', { props: { modelValue: ['1'] } }],
|
||||
['with defaultValue', { props: { defaultValue: ['1'] } }],
|
||||
['with id', { props: { id: 'pin-input-id' } }],
|
||||
@@ -30,8 +29,9 @@ describe('PinInput', () => {
|
||||
...variants.map((variant: string) => [`with primary variant ${variant} highlight`, { props: { variant, highlight: true } }]),
|
||||
...variants.map((variant: string) => [`with neutral variant ${variant}`, { props: { variant, color: 'neutral' } }]),
|
||||
...variants.map((variant: string) => [`with neutral variant ${variant} highlight`, { props: { variant, color: 'neutral', highlight: true } }]),
|
||||
['with class', { props: { class: '' } }],
|
||||
['with ui', { props: { ui: {} } }]
|
||||
['with as', { props: { as: 'span' } }],
|
||||
['with class', { props: { class: 'absolute' } }],
|
||||
['with ui', { props: { ui: { base: 'rounded-full' } } }]
|
||||
])('renders %s correctly', async (nameOrHtml: string, options: { props?: PinInputProps }) => {
|
||||
const html = await ComponentRender(nameOrHtml, options, PinInput)
|
||||
expect(html).toMatchSnapshot()
|
||||
|
||||
Reference in New Issue
Block a user