test: update

This commit is contained in:
Benjamin Canac
2024-03-13 12:27:10 +01:00
parent 4d3bab71e5
commit 959b1295f2
8 changed files with 27 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import ComponentRender from '../component-render'
describe('Skeleton', () => {
it.each([
['basic case', {}],
['with as', { props: { as: 'span' } }],
['with class', { props: { class: 'rounded-full size-12' } }]
])('renders %s correctly', async (nameOrHtml: string, options: { props?: SkeletonProps, slots?: any }) => {
const html = await ComponentRender(nameOrHtml, options, Skeleton)