fix(GoodsActionIcon): info not work with icon slot (#5788)

This commit is contained in:
chenjiahan
2020-03-10 20:33:11 +08:00
parent 885a9e6ac7
commit f2e9e1931b
4 changed files with 36 additions and 2 deletions
+18
View File
@@ -48,3 +48,21 @@ test('Icon render icon slot', () => {
expect(wrapper).toMatchSnapshot();
});
test('Icon render icon slot with info', () => {
const wrapper = mount({
render(h) {
return h(Icon, {
props: {
info: '1',
},
scopedSlots: {
default: () => 'Text',
icon: () => 'Custom Icon',
},
});
},
});
expect(wrapper).toMatchSnapshot();
});