test: update

This commit is contained in:
Benjamin Canac
2024-03-20 14:03:33 +01:00
parent 6e10a0942f
commit 418ffb8426
9 changed files with 217 additions and 579 deletions

View File

@@ -26,8 +26,8 @@ describe('NavigationMenu', () => {
it.each([
['basic case', { props: { links } }],
['with vertical orientation', { props: { links, orientation: 'vertical' as const } }],
['with class', { props: { class: 'w-48' } }],
['with ui', { props: { ui: { icon: 'w-4 h-4' } } }]
['with class', { props: { links, class: 'w-48' } }],
['with ui', { props: { links, ui: { icon: 'w-4 h-4' } } }]
])('renders %s correctly', async (nameOrHtml: string, options: { props?: NavigationMenuProps<typeof links[number]>, slots?: any }) => {
const html = await ComponentRender(nameOrHtml, options, NavigationMenu)
expect(html).toMatchSnapshot()