feat(Field): add name prop

This commit is contained in:
陈嘉涵
2020-02-07 14:33:44 +08:00
parent 03c826c4d4
commit 67bec61c6d
5 changed files with 23 additions and 2 deletions
+9
View File
@@ -291,3 +291,12 @@ test('reach max word-limit', () => {
});
expect(wrapper).toMatchSnapshot();
});
test('name prop', () => {
const wrapper = mount(Field, {
propsData: {
name: 'foo',
},
});
expect(wrapper).toMatchSnapshot();
});