mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
fix(components): improve generic types (#3331)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -37,7 +37,7 @@ describe('Carousel', () => {
|
||||
['with as', { props: { ...props, as: 'nav' } }],
|
||||
['with class', { props: { ...props, class: 'w-full max-w-xs' } }],
|
||||
['with ui', { props: { ...props, ui: { viewport: 'h-[320px]' } } }]
|
||||
])('renders %s correctly', async (nameOrHtml: string, options: { props?: CarouselProps<typeof items[number]>, slots?: Partial<CarouselSlots<typeof items[number]>> }) => {
|
||||
])('renders %s correctly', async (nameOrHtml: string, options: { props?: CarouselProps, slots?: Partial<CarouselSlots> }) => {
|
||||
const html = await ComponentRender(nameOrHtml, options, CarouselWrapper)
|
||||
expect(html).toMatchSnapshot()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user