Skip to content

Commit

Permalink
fix: update select test
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Sep 4, 2024
1 parent 2d76532 commit 108e968
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/Select/WSelect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ import Icon from '@/assets/svg/navigation-cursor.svg?component'
describe('WSelect', () => {
it('renders properly', () => {
const wrapper = shallowMount(WSelect, {
emits: ['update:modelValue'],
props: {
dropdownPosition: DropdownPosition.Bottom,
modelValue: {
key: 'en',
label: 'English',
icon: null
},
'onUpdate:modelValue': (e) => wrapper.setProps({ modelValue: e }),
options: [{
key: 'en',
label: 'English',
Expand All @@ -34,15 +32,13 @@ describe('WSelect', () => {

it('renders properly an icon when provided', () => {
const wrapper = shallowMount(WSelect, {
emits: ['update:modelValue'],
props: {
dropdownPosition: DropdownPosition.Bottom,
modelValue: {
key: 'en',
label: 'English',
icon: Icon
},
'onUpdate:modelValue': (e) => wrapper.setProps({ modelValue: e }),
options: [{
key: 'en',
label: 'English',
Expand Down

0 comments on commit 108e968

Please sign in to comment.