diff options
Diffstat (limited to 'spec/frontend/packages_and_registries/settings/group/components/settings_titles_spec.js')
-rw-r--r-- | spec/frontend/packages_and_registries/settings/group/components/settings_titles_spec.js | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/spec/frontend/packages_and_registries/settings/group/components/settings_titles_spec.js b/spec/frontend/packages_and_registries/settings/group/components/settings_titles_spec.js deleted file mode 100644 index fcfad4b42b8..00000000000 --- a/spec/frontend/packages_and_registries/settings/group/components/settings_titles_spec.js +++ /dev/null @@ -1,35 +0,0 @@ -import { shallowMount } from '@vue/test-utils'; -import SettingsTitles from '~/packages_and_registries/settings/group/components/settings_titles.vue'; - -describe('settings_titles', () => { - let wrapper; - - const defaultProps = { - title: 'foo', - subTitle: 'bar', - }; - - const mountComponent = (propsData = defaultProps) => { - wrapper = shallowMount(SettingsTitles, { - propsData, - }); - }; - - const findSubTitle = () => wrapper.find('p'); - - afterEach(() => { - wrapper.destroy(); - }); - - it('renders properly', () => { - mountComponent(); - - expect(wrapper.element).toMatchSnapshot(); - }); - - it('does not render the subtitle paragraph when no subtitle is passed', () => { - mountComponent({ title: defaultProps.title }); - - expect(findSubTitle().exists()).toBe(false); - }); -}); |