Skip to content
代码片段 群组 项目
未验证 提交 f803f74a 编辑于 作者: Alexander Turinske's avatar Alexander Turinske 提交者: GitLab
浏览文件

Merge branch 'remove-orphan-form-title-component' into 'master'

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.
先完成此消息的编辑!
想要评论请 注册