diff options
Diffstat (limited to 'spec/frontend/profile/components/following_tab_spec.js')
-rw-r--r-- | spec/frontend/profile/components/following_tab_spec.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/frontend/profile/components/following_tab_spec.js b/spec/frontend/profile/components/following_tab_spec.js new file mode 100644 index 00000000000..75123274ccb --- /dev/null +++ b/spec/frontend/profile/components/following_tab_spec.js @@ -0,0 +1,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')); + }); +}); |