From 57ce3e6cf3bfbf9cba9d8c45a5dc4790f667ea10 Mon Sep 17 00:00:00 2001 From: Lisi Linhart Date: Wed, 25 Oct 2023 17:55:57 +0200 Subject: [PATCH] fix: the unit tests --- src/components/Select/__tests__/Select.spec.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/components/Select/__tests__/Select.spec.js b/src/components/Select/__tests__/Select.spec.js index 82a7676e0..eeadc2794 100644 --- a/src/components/Select/__tests__/Select.spec.js +++ b/src/components/Select/__tests__/Select.spec.js @@ -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 + ) }) }) @@ -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() }) @@ -1190,9 +1190,7 @@ describe('SbSelect component', () => { rightIcon: '', }) - expect( - wrapper.find('.custom-right-icon').exists() - ).toBeTruthy() + expect(wrapper.find('.custom-right-icon').exists()).toBeTruthy() }) }) })