test: update

This commit is contained in:
Benjamin Canac
2024-03-20 14:03:33 +01:00
parent 6e10a0942f
commit 418ffb8426
9 changed files with 217 additions and 579 deletions

View File

@@ -10,14 +10,14 @@ describe('Input', () => {
['with placeholder', { props: { placeholder: 'Enter your username' } }],
['with disabled', { props: { disabled: true } }],
['with required', { props: { required: true } }],
// ['with icon', { props: { icon: 'i-heroicons-battery-50-solid' } }],
// ['with leading and icon', { props: { leading: true, icon: 'i-heroicons-battery-50-solid' } }],
// ['with leadingIcon', { props: { leadingIcon: 'i-heroicons-battery-50-solid' } }],
// ['with loading icon', { props: { loading: true } }],
// ['with leading slot', { slots: { leading: () => 'leading slot' } }],
// ['with trailing and icon', { props: { trailing: true, icon: 'i-heroicons-battery-50-solid' } }],
// ['with trailingIcon', { props: { trailingIcon: 'i-heroicons-battery-50-solid' } }],
// ['with trailing slot', { slots: { leading: () => 'trailing slot' } }],
['with icon', { props: { icon: 'i-heroicons-magnifying-glass' } }],
['with leading and icon', { props: { leading: true, icon: 'i-heroicons-magnifying-glass' } }],
['with leadingIcon', { props: { leadingIcon: 'i-heroicons-magnifying-glass' } }],
['with loading icon', { props: { loading: true } }],
['with leading slot', { slots: { leading: () => 'leading slot' } }],
['with trailing and icon', { props: { trailing: true, icon: 'i-heroicons-magnifying-glass' } }],
['with trailingIcon', { props: { trailingIcon: 'i-heroicons-magnifying-glass' } }],
['with trailing slot', { slots: { leading: () => 'trailing slot' } }],
['with size', { props: { size: 'xs' as const } }],
['with color', { props: { color: 'red' as const } }],
['with variant', { props: { variant: 'outline' as const } }]