From 2d4af46eed98455d748519e6c1ca78a9fdae488c Mon Sep 17 00:00:00 2001 From: Joseph Ojoko Date: Tue, 17 Oct 2023 11:12:16 +0100 Subject: [PATCH] chore: fix warning, merge imports --- src/components/tabs/tab/Tab.spec.ts | 8 ++++++-- src/components/tabs/tab/Tab.vue | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/tabs/tab/Tab.spec.ts b/src/components/tabs/tab/Tab.spec.ts index fc006fd5..7daa3979 100644 --- a/src/components/tabs/tab/Tab.spec.ts +++ b/src/components/tabs/tab/Tab.spec.ts @@ -1,7 +1,11 @@ -import { type ComponentMountingOptions, mount } from '@vue/test-utils'; +import { + type ComponentMountingOptions, + RouterLinkStub, + mount, +} from '@vue/test-utils'; import { describe, expect, it } from 'vitest'; -import { RouterLinkStub } from '@vue/test-utils'; import Tab from '@/components/tabs/tab/Tab.vue'; + const createWrapper = (options?: ComponentMountingOptions) => mount(Tab, { ...options, diff --git a/src/components/tabs/tab/Tab.vue b/src/components/tabs/tab/Tab.vue index 8bebe8e8..f30e77a5 100644 --- a/src/components/tabs/tab/Tab.vue +++ b/src/components/tabs/tab/Tab.vue @@ -41,9 +41,9 @@ const emit = defineEmits<{ }>(); const slots = defineSlots<{ - default?(): any; - prepend?(): any; - append?(): any; + default?(props?: object): any; + prepend?(props?: object): any; + append?(props?: object): any; }>(); const { target, grow, active, disabled, vertical, align, tabValue } =