From b3e885211ab4326a3088862f8d7200741d7930db Mon Sep 17 00:00:00 2001 From: HugoRCD Date: Wed, 25 Jun 2025 16:32:01 +0200 Subject: [PATCH] up --- test/components/CommandPalette.spec.ts | 2 + .../CommandPalette-vue.spec.ts.snap | 74 +++++++++++++++++- .../__snapshots__/CommandPalette.spec.ts.snap | 76 ++++++++++++++++++- 3 files changed, 146 insertions(+), 6 deletions(-) diff --git a/test/components/CommandPalette.spec.ts b/test/components/CommandPalette.spec.ts index f9abaa6c..f619c76d 100644 --- a/test/components/CommandPalette.spec.ts +++ b/test/components/CommandPalette.spec.ts @@ -73,6 +73,7 @@ describe('CommandPalette', () => { ['with placeholder', { props: { ...props, placeholder: 'Search...' } }], ['with disabled', { props: { ...props, disabled: true } }], ['with icon', { props: { ...props, icon: 'i-lucide-terminal' } }], + ['with inputTrailingIcon', { props: { ...props, inputTrailingIcon: 'i-lucide-settings' } }], ['with loading', { props: { ...props, loading: true } }], ['with loadingIcon', { props: { ...props, loading: true, loadingIcon: 'i-lucide-loader' } }], ['with selectedIcon', { props: { ...props, selectedIcon: 'i-lucide-badge-check', modelValue: groups[2].items[0] } }], @@ -83,6 +84,7 @@ describe('CommandPalette', () => { ['with ui', { props: { ...props, ui: { input: '[&>input]:h-10' } } }], // Slots ['with empty slot', { props, slots: { empty: () => 'Empty slot' } }], + ['with input-trailing slot', { props, slots: { 'input-trailing': () => 'Input trailing slot' } }], ['with item slot', { props, slots: { item: () => 'Item slot' } }], ['with item-leading slot', { props, slots: { 'item-leading': () => 'Item leading slot' } }], ['with item-label slot', { props, slots: { 'item-label': () => 'Item label slot' } }], diff --git a/test/components/__snapshots__/CommandPalette-vue.spec.ts.snap b/test/components/__snapshots__/CommandPalette-vue.spec.ts.snap index c77e87c7..a08df916 100644 --- a/test/components/__snapshots__/CommandPalette-vue.spec.ts.snap +++ b/test/components/__snapshots__/CommandPalette-vue.spec.ts.snap @@ -74,7 +74,7 @@ exports[`CommandPalette > renders with class correctly 1`] = ` exports[`CommandPalette > renders with close correctly 1`] = ` "
-
+