feat(GoodsActionIcon): add dot prop

This commit is contained in:
chenjiahan
2020-03-10 20:38:11 +08:00
parent f2e9e1931b
commit b983ac0891
7 changed files with 35 additions and 6 deletions
+18
View File
@@ -66,3 +66,21 @@ test('Icon render icon slot with info', () => {
expect(wrapper).toMatchSnapshot();
});
test('Icon render icon slot with dot', () => {
const wrapper = mount({
render(h) {
return h(Icon, {
props: {
dot: true,
},
scopedSlots: {
default: () => 'Text',
icon: () => 'Custom Icon',
},
});
},
});
expect(wrapper).toMatchSnapshot();
});