mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-10 01:31:45 +00:00
19 lines
528 B
JavaScript
19 lines
528 B
JavaScript
import { shallowMount } from '@vue/test-utils';
|
|
import { getByText } from '@testing-library/dom';
|
|
import AssigneesDropdown from '~/vue_shared/components/sidebar/assignees_dropdown.vue';
|
|
|
|
describe('AssigneesDropdown Component', () => {
|
|
it('renders items slot', () => {
|
|
const wrapper = shallowMount(AssigneesDropdown, {
|
|
propsData: {
|
|
text: '',
|
|
headerText: '',
|
|
},
|
|
slots: {
|
|
items: '<p>Test</p>',
|
|
},
|
|
});
|
|
expect(getByText(wrapper.element, 'Test')).toBeDefined();
|
|
});
|
|
});
|