mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
test: update
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user