diff --git a/src/components/Select/WSelect.spec.ts b/src/components/Select/WSelect.spec.ts index 2ca7ec1..75104af 100644 --- a/src/components/Select/WSelect.spec.ts +++ b/src/components/Select/WSelect.spec.ts @@ -1,12 +1,12 @@ import { describe, it, expect } from 'vitest' -import { mount } from '@vue/test-utils' +import { shallowMount } from '@vue/test-utils' import WSelect from './WSelect.vue' import { DropdownPosition } from './WSelect' import Icon from '@/assets/svg/navigation-cursor.svg?component' describe('WSelect', () => { it('renders properly', () => { - const wrapper = mount(WSelect, { + const wrapper = shallowMount(WSelect, { emits: ['update:modelValue'], props: { dropdownPosition: DropdownPosition.bottom, @@ -33,7 +33,7 @@ describe('WSelect', () => { }) it('renders properly an icon when provided', () => { - const wrapper = mount(WSelect, { + const wrapper = shallowMount(WSelect, { emits: ['update:modelValue'], props: { dropdownPosition: DropdownPosition.bottom, diff --git a/src/components/Select/__snapshots__/WSelect.spec.ts.snap b/src/components/Select/__snapshots__/WSelect.spec.ts.snap index 81f9184..8611945 100644 --- a/src/components/Select/__snapshots__/WSelect.spec.ts.snap +++ b/src/components/Select/__snapshots__/WSelect.spec.ts.snap @@ -1,215 +1,85 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`WSelect > renders properly 1`] = ` -
- - - - -
+ disabled="false" + dropdownshouldopen="[Function]" + filter="[Function]" + filterable="false" + filterby="[Function]" + getoptionkey="[Function]" + getoptionlabel="[Function]" + label="label" + mapkeydown="[Function]" + modelvalue="[object Object]" + multiple="false" + nodrop="false" + options="[object Object],[object Object]" + placeholder="" + pushtags="false" + reduce="[Function]" + resetonoptionschange="false" + searchable="false" + searchinputqueryselector="[type=search]" + selectable="[Function]" + selectonkeycodes="13" + selectontab="false" + taggable="false" + transition="dropdown" + uid="1" +/> `; exports[`WSelect > renders properly an icon when provided 1`] = ` -
- - - - -
+ disabled="false" + dropdownshouldopen="[Function]" + filter="[Function]" + filterable="false" + filterby="[Function]" + getoptionkey="[Function]" + getoptionlabel="[Function]" + label="label" + mapkeydown="[Function]" + modelvalue="[object Object]" + multiple="false" + nodrop="false" + options="[object Object],[object Object]" + placeholder="" + pushtags="false" + reduce="[Function]" + resetonoptionschange="false" + searchable="false" + searchinputqueryselector="[type=search]" + selectable="[Function]" + selectonkeycodes="13" + selectontab="false" + taggable="false" + transition="dropdown" + uid="2" +/> `; diff --git a/src/components/Tooltip/WTooltip.spec.ts b/src/components/Tooltip/WTooltip.spec.ts index a3e7d2c..291b2da 100644 --- a/src/components/Tooltip/WTooltip.spec.ts +++ b/src/components/Tooltip/WTooltip.spec.ts @@ -6,11 +6,11 @@ describe('WTooltip', () => { it('renders properly', () => { const wrapper = mount(WTooltip, { props: { - bgColor: '16px', - textColor: '', + bgColor: '#000', }, slots: { - default: `

Text

` + main: `

Text

`, + tooltip: `

Text info

` } }) diff --git a/src/components/Tooltip/WTooltip.stories.ts b/src/components/Tooltip/WTooltip.stories.ts index c66f2b5..02c25a3 100644 --- a/src/components/Tooltip/WTooltip.stories.ts +++ b/src/components/Tooltip/WTooltip.stories.ts @@ -8,7 +8,7 @@ const meta: any = { argTypes: {}, args: { bgColor: '#000', - } + }, } satisfies Meta export default meta @@ -20,7 +20,7 @@ export const Default: Story = { setup() { return { args } }, - template: `