diff --git a/test/components/Button.spec.ts b/test/components/Button.spec.ts index a0d27033..858bff82 100644 --- a/test/components/Button.spec.ts +++ b/test/components/Button.spec.ts @@ -17,9 +17,11 @@ describe('Button', () => { ['with variant soft', { props: { label: 'Button', variant: 'soft' as const } }], ['with variant ghost', { props: { label: 'Button', variant: 'ghost' as const } }], ['with variant link', { props: { label: 'Button', variant: 'link' as const } }], - ['with icon', { props: { icon: 'i-heroicons-academic-cap' } }], - ['with trailingIcon', { props: { trailing: true, trailingIcon: 'i-heroicons-arrow-right' } }], - ['with leadingIcon', { props: { leading: true, leadingIcon: 'i-heroicons-arrow-left' } }], + ['with icon', { props: { icon: 'i-heroicons-rocket-launch' } }], + ['with leading and icon', { props: { leading: true, icon: 'i-heroicons-arrow-left' } }], + ['with leadingIcon', { props: { leadingIcon: 'i-heroicons-arrow-left' } }], + ['with trailing and icon', { props: { trailing: true, icon: 'i-heroicons-arrow-right' } }], + ['with trailingIcon', { props: { trailingIcon: 'i-heroicons-arrow-right' } }], ['with loading', { props: { loading: true } }], ['with loadingIcon', { props: { loading: true, loadingIcon: 'i-heroicons-sparkles' } }], ['with disabled', { props: { label: 'Button', disabled: true } }], diff --git a/test/components/__snapshots__/Button.spec.ts.snap b/test/components/__snapshots__/Button.spec.ts.snap index 768329fe..c5475a17 100644 --- a/test/components/__snapshots__/Button.spec.ts.snap +++ b/test/components/__snapshots__/Button.spec.ts.snap @@ -32,7 +32,7 @@ exports[`Button > renders with disabled correctly 1`] = ` exports[`Button > renders with icon correctly 1`] = ` "" `; +exports[`Button > renders with leading and icon correctly 1`] = ` +"" +`; + exports[`Button > renders with leading slot correctly 1`] = ` "" `; +exports[`Button > renders with trailing and icon correctly 1`] = ` +"" +`; + exports[`Button > renders with trailing slot correctly 1`] = ` "