blob: 75123274ccb27eab8e13135812d4801d17267c16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { GlTab } from '@gitlab/ui';
import { s__ } from '~/locale';
import FollowingTab from '~/profile/components/following_tab.vue';
import { shallowMountExtended } from 'helpers/vue_test_utils_helper';
describe('FollowingTab', () => {
let wrapper;
const createComponent = () => {
wrapper = shallowMountExtended(FollowingTab);
};
it('renders `GlTab` and sets `title` prop', () => {
createComponent();
expect(wrapper.findComponent(GlTab).attributes('title')).toBe(s__('UserProfile|Following'));
});
});
|