[new feature] GoodsAction: update style (#3967)

This commit is contained in:
neverland
2019-07-25 20:13:21 +08:00
committed by GitHub
parent d3178c85d7
commit c72ac6edcd
11 changed files with 156 additions and 178 deletions
+4 -20
View File
@@ -3,31 +3,15 @@ import Icon from '../../goods-action-icon';
import { mount } from '../../../test/utils';
test('Button click event', () => {
const click = jest.fn();
const wrapper = mount(Button, {
context: {
on: {
click
}
}
});
const wrapper = mount(Button);
wrapper.trigger('click');
expect(click).toHaveBeenCalledTimes(1);
expect(wrapper.emitted('click').length).toEqual(1);
});
test('Icon click event', () => {
const click = jest.fn();
const wrapper = mount(Icon, {
context: {
on: {
click
}
}
});
const wrapper = mount(Icon);
wrapper.trigger('click');
expect(click).toHaveBeenCalledTimes(1);
expect(wrapper.emitted('click').length).toEqual(1);
});
test('Button render default slot', () => {