Skip to content
代码片段 群组 项目
提交 a42ab7d6 编辑于 作者: lorenzvanherwaarden's avatar lorenzvanherwaarden
浏览文件

Remove orphan form title component

This removes the unused form title component and
its specs and snapshot.
上级 9929a851
No related branches found
No related tags found
无相关合并请求
<!-- eslint-disable vue/multi-word-component-names -->
<script>
import { GlFormInput, GlFormGroup } from '@gitlab/ui';
export default {
components: {
GlFormInput,
GlFormGroup,
},
inheritAttrs: false,
};
</script>
<template>
<gl-form-group :label="__('Title')" label-for="title-field-edit">
<gl-form-input v-bind="$attrs" v-on="$listeners" />
</gl-form-group>
</template>
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Title edit field matches the snapshot 1`] = `
<gl-form-group-stub
label="Title"
label-for="title-field-edit"
labeldescription=""
optionaltext="(optional)"
>
<gl-form-input-stub />
</gl-form-group-stub>
`;
import { shallowMount } from '@vue/test-utils';
import TitleField from '~/vue_shared/components/form/title.vue';
describe('Title edit field', () => {
let wrapper;
function createComponent() {
wrapper = shallowMount(TitleField);
}
beforeEach(() => {
createComponent();
});
it('matches the snapshot', () => {
expect(wrapper.element).toMatchSnapshot();
});
});
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册