mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 23:40:39 +01:00
chore(deps): migrate to eslint 9 (#2443)
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { describe, it, expect } from 'vitest'
|
||||
import { USkeleton } from '#components'
|
||||
import type { TypeOf } from 'zod'
|
||||
import ComponentRender from '../component-render'
|
||||
import { USkeleton } from '#components'
|
||||
|
||||
describe('Skeleton', () => {
|
||||
it.each([
|
||||
[ 'basic case', { } ],
|
||||
[ '<USkeleton class="h-12 w-12" :ui="{ rounded: \'rounded-full\' }" />' ],
|
||||
[ '<USkeleton as="span" />' ]
|
||||
['basic case', { }],
|
||||
['<USkeleton class="h-12 w-12" :ui="{ rounded: \'rounded-full\' }" />'],
|
||||
['<USkeleton as="span" />']
|
||||
])('renders %s correctly', async (nameOrHtml: string, options?: TypeOf<typeof USkeleton.props>) => {
|
||||
const html = await ComponentRender(nameOrHtml, options, USkeleton)
|
||||
expect(html).toMatchSnapshot()
|
||||
|
||||
Reference in New Issue
Block a user