mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-19 14:31:47 +01:00
chore(deps): migrate to eslint 9 (#2443)
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import { describe, it, expect } from 'vitest'
|
||||
import { UButton } from '#components'
|
||||
import type { TypeOf } from 'zod'
|
||||
import ComponentRender from '../component-render'
|
||||
import { UButton } from '#components'
|
||||
|
||||
describe('Button', () => {
|
||||
it.each([
|
||||
[ 'basic case', { } ],
|
||||
[ 'leading icon', { props: { leading: true, icon: 'heroicons-check' } } ],
|
||||
[ 'black solid', { props: { color: 'black', variant: 'solid' } } ],
|
||||
[ 'rounded full', { props: { ui: { rounded: 'rounded-full' } } } ],
|
||||
[ '<UButton icon="i-heroicons-pencil-square" size="sm" color="primary" square variant="solid" />' ]
|
||||
['basic case', { }],
|
||||
['leading icon', { props: { leading: true, icon: 'heroicons-check' } }],
|
||||
['black solid', { props: { color: 'black', variant: 'solid' } }],
|
||||
['rounded full', { props: { ui: { rounded: 'rounded-full' } } }],
|
||||
['<UButton icon="i-heroicons-pencil-square" size="sm" color="primary" square variant="solid" />']
|
||||
// @ts-ignore
|
||||
])('renders %s correctly', async (nameOrHtml: string, options: TypeOf<typeof Button.props>) => {
|
||||
])('renders %s correctly', async (nameOrHtml: string, options: TypeOf<typeof UButton.props>) => {
|
||||
if (options !== undefined) {
|
||||
options.slots = options.slots || { default: () => 'label' }
|
||||
options.slots.default = options.slots.default || (() => 'label')
|
||||
|
||||
Reference in New Issue
Block a user