Files
gitlab-foss/spec/frontend/vue_shared/components/assignees_dropdown_spec.js
2020-10-20 15:08:57 +00:00

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();
});
});