diff options
Diffstat (limited to 'spec/frontend/vue_shared/components/project_selector/project_list_item_spec.js')
-rw-r--r-- | spec/frontend/vue_shared/components/project_selector/project_list_item_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/vue_shared/components/project_selector/project_list_item_spec.js b/spec/frontend/vue_shared/components/project_selector/project_list_item_spec.js index 385134c4a3f..649eb2643f1 100644 --- a/spec/frontend/vue_shared/components/project_selector/project_list_item_spec.js +++ b/spec/frontend/vue_shared/components/project_selector/project_list_item_spec.js @@ -29,7 +29,7 @@ describe('ProjectListItem component', () => { it('does not render a check mark icon if selected === false', () => { wrapper = shallowMount(Component, options); - expect(wrapper.contains('.js-selected-icon.js-unselected')).toBe(true); + expect(wrapper.find('.js-selected-icon').exists()).toBe(false); }); it('renders a check mark icon if selected === true', () => { @@ -37,7 +37,7 @@ describe('ProjectListItem component', () => { wrapper = shallowMount(Component, options); - expect(wrapper.contains('.js-selected-icon.js-selected')).toBe(true); + expect(wrapper.find('.js-selected-icon').exists()).toBe(true); }); it(`emits a "clicked" event when clicked`, () => { @@ -53,7 +53,7 @@ describe('ProjectListItem component', () => { it(`renders the project avatar`, () => { wrapper = shallowMount(Component, options); - expect(wrapper.contains('.js-project-avatar')).toBe(true); + expect(wrapper.find('.js-project-avatar').exists()).toBe(true); }); it(`renders a simple namespace name with a trailing slash`, () => { |