19 lines
516 B
JavaScript
19 lines
516 B
JavaScript
import { GlTab } from '@gitlab/ui';
|
|
|
|
import { s__ } from '~/locale';
|
|
import GroupsTab from '~/profile/components/groups_tab.vue';
|
|
import { shallowMountExtended } from 'helpers/vue_test_utils_helper';
|
|
|
|
describe('GroupsTab', () => {
|
|
let wrapper;
|
|
|
|
const createComponent = () => {
|
|
wrapper = shallowMountExtended(GroupsTab);
|
|
};
|
|
|
|
it('renders `GlTab` and sets `title` prop', () => {
|
|
createComponent();
|
|
|
|
expect(wrapper.findComponent(GlTab).attributes('title')).toBe(s__('UserProfile|Groups'));
|
|
});
|
|
});
|