debian-mirror-gitlab/spec/frontend/profile/components/personal_projects_tab_spec.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
581 B
JavaScript
Raw Normal View History

2023-04-23 21:23:45 +05:30
import { GlTab } from '@gitlab/ui';
import { s__ } from '~/locale';
import PersonalProjectsTab from '~/profile/components/personal_projects_tab.vue';
import { shallowMountExtended } from 'helpers/vue_test_utils_helper';
describe('PersonalProjectsTab', () => {
let wrapper;
const createComponent = () => {
wrapper = shallowMountExtended(PersonalProjectsTab);
};
it('renders `GlTab` and sets `title` prop', () => {
createComponent();
expect(wrapper.findComponent(GlTab).attributes('title')).toBe(
s__('UserProfile|Personal projects'),
);
});
});