fix(Tabs): missing props pick

This commit is contained in:
Benjamin Canac
2024-03-21 17:40:09 +01:00
parent 52eef36baa
commit f086f2662e
3 changed files with 21 additions and 20 deletions

View File

@@ -22,7 +22,7 @@ describe('Tabs', () => {
['with modelValue', { props: { items, modelValue: '1' } }],
['with defaultValue', { props: { items, defaultValue: '1' } }],
['with default slot', { props: { items }, slots: { default: () => 'Default slot' } }],
['with item slot', { props: { items }, slots: { item: () => 'Item slot' } }]
['with content slot', { props: { items }, slots: { content: () => 'Content slot' } }]
])('renders %s correctly', async (nameOrHtml: string, options: { props?: TabsProps<typeof items[number]>, slots?: any }) => {
const html = await ComponentRender(nameOrHtml, options, Tabs)
expect(html).toMatchSnapshot()