debian-mirror-gitlab/spec/frontend/profile/components/starred_projects_tab_spec.js
2023-04-23 21:23:45 +05:30

21 lines
576 B
JavaScript

import { GlTab } from '@gitlab/ui';
import { s__ } from '~/locale';
import StarredProjectsTab from '~/profile/components/starred_projects_tab.vue';
import { shallowMountExtended } from 'helpers/vue_test_utils_helper';
describe('StarredProjectsTab', () => {
let wrapper;
const createComponent = () => {
wrapper = shallowMountExtended(StarredProjectsTab);
};
it('renders `GlTab` and sets `title` prop', () => {
createComponent();
expect(wrapper.findComponent(GlTab).attributes('title')).toBe(
s__('UserProfile|Starred projects'),
);
});
});