2023-04-23 21:23:45 +05:30
|
|
|
import { GlTab } from '@gitlab/ui';
|
|
|
|
|
|
|
|
import { s__ } from '~/locale';
|
|
|
|
import OverviewTab from '~/profile/components/overview_tab.vue';
|
|
|
|
import { shallowMountExtended } from 'helpers/vue_test_utils_helper';
|
2023-05-27 22:25:52 +05:30
|
|
|
import ActivityCalendar from '~/profile/components/activity_calendar.vue';
|
2023-04-23 21:23:45 +05:30
|
|
|
|
|
|
|
describe('OverviewTab', () => {
|
|
|
|
let wrapper;
|
|
|
|
|
|
|
|
const createComponent = () => {
|
|
|
|
wrapper = shallowMountExtended(OverviewTab);
|
|
|
|
};
|
|
|
|
|
|
|
|
it('renders `GlTab` and sets `title` prop', () => {
|
|
|
|
createComponent();
|
|
|
|
|
|
|
|
expect(wrapper.findComponent(GlTab).attributes('title')).toBe(s__('UserProfile|Overview'));
|
|
|
|
});
|
2023-05-27 22:25:52 +05:30
|
|
|
|
|
|
|
it('renders `ActivityCalendar` component', () => {
|
|
|
|
createComponent();
|
|
|
|
|
|
|
|
expect(wrapper.findComponent(ActivityCalendar).exists()).toBe(true);
|
|
|
|
});
|
2023-04-23 21:23:45 +05:30
|
|
|
});
|