[improvement] add test case for field icon props (#2876)

This commit is contained in:
neverland
2019-03-01 14:18:29 +08:00
committed by GitHub
parent 60b5e188c8
commit 4ad382b33a
6 changed files with 93 additions and 0 deletions
+9
View File
@@ -178,3 +178,12 @@ test('render label slot', () => {
expect(wrapper).toMatchSnapshot();
});
test('render right icon with icon prop for old version', () => {
const wrapper = mount(Field, {
propsData: {
icon: 'success'
}
});
expect(wrapper).toMatchSnapshot();
});