Skip to content

Commit

Permalink
fix: the unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisi Linhart committed Oct 25, 2023
1 parent 3319f40 commit 57ce3e6
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/components/Select/__tests__/Select.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1152,17 +1152,17 @@ describe('SbSelect component', () => {
inlineLabel: 'Inline label',
})

expect(
wrapper.find('.sb-select-inner__inline-label').text()
).toBe('Inline label')
expect(wrapper.find('.sb-select-inner__inline-label').text()).toBe(
'Inline label'
)
})

it('should not render the inline label by default', () => {
const wrapper = factory()

expect(
wrapper.find('.sb-select-inner__inline-label').exists()
).toBe(false)
expect(wrapper.find('.sb-select-inner__inline-label').exists()).toBe(
false
)
})
})

Expand All @@ -1181,7 +1181,7 @@ describe('SbSelect component', () => {
const wrapper = factory()

expect(
wrapper.find('.sb-select-inner__chevron').exists()
wrapper.find('.sb-select-inner__chevron-dropdown').exists()
).toBeTruthy()
})

Expand All @@ -1190,9 +1190,7 @@ describe('SbSelect component', () => {
rightIcon: '<span class="custom-right-icon" />',
})

expect(
wrapper.find('.custom-right-icon').exists()
).toBeTruthy()
expect(wrapper.find('.custom-right-icon').exists()).toBeTruthy()
})
})
})

0 comments on commit 57ce3e6

Please sign in to comment.