mirror of
https://github.com/nuxt/ui.git
synced 2026-09-14 19:51:10 +08:00
7d1e8631ea
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
15 lines
557 B
TypeScript
15 lines
557 B
TypeScript
import { describe } from 'vitest'
|
|
import ContentSearchButton from '../../../src/runtime/components/content/ContentSearchButton.vue'
|
|
import { renderEach } from '../../component-render'
|
|
|
|
describe('DashboardSearchButton', () => {
|
|
renderEach(ContentSearchButton, [
|
|
// Props
|
|
['with label', { props: { label: 'Open' } }],
|
|
['with icon', { props: { icon: 'i-lucide-house' } }],
|
|
['with kbds', { props: { kbds: ['alt', 'o'] } }],
|
|
['without collapsed', { props: { collapsed: false } }],
|
|
['with class', { props: { class: 'w-full' } }]
|
|
])
|
|
})
|