test: update listeners style
parent
9ab1644e1e
commit
792d2af69b
|
@ -202,9 +202,7 @@ describe('Calendar', () => {
|
||||||
const wrapper = mount(Calendar, {
|
const wrapper = mount(Calendar, {
|
||||||
props: {
|
props: {
|
||||||
mode: yearMode,
|
mode: yearMode,
|
||||||
},
|
onPanelChange: onPanelChangeStub,
|
||||||
listeners: {
|
|
||||||
panelChange: onPanelChangeStub,
|
|
||||||
},
|
},
|
||||||
sync: false,
|
sync: false,
|
||||||
});
|
});
|
||||||
|
@ -240,9 +238,7 @@ describe('Calendar', () => {
|
||||||
const wrapper = mount(Calendar, {
|
const wrapper = mount(Calendar, {
|
||||||
props: {
|
props: {
|
||||||
value: date,
|
value: date,
|
||||||
},
|
onPanelChange,
|
||||||
listeners: {
|
|
||||||
panelChange: onPanelChange,
|
|
||||||
},
|
},
|
||||||
sync: false,
|
sync: false,
|
||||||
});
|
});
|
||||||
|
@ -261,9 +257,7 @@ describe('Calendar', () => {
|
||||||
const wrapper = mount(Calendar, {
|
const wrapper = mount(Calendar, {
|
||||||
props: {
|
props: {
|
||||||
value: date,
|
value: date,
|
||||||
},
|
onPanelChange,
|
||||||
listeners: {
|
|
||||||
panelChange: onPanelChange,
|
|
||||||
},
|
},
|
||||||
sync: false,
|
sync: false,
|
||||||
});
|
});
|
||||||
|
|
|
@ -12,9 +12,9 @@ describe('Checkbox', () => {
|
||||||
const onMouseLeave = jest.fn();
|
const onMouseLeave = jest.fn();
|
||||||
|
|
||||||
const wrapper = mount(Checkbox, {
|
const wrapper = mount(Checkbox, {
|
||||||
listeners: {
|
props: {
|
||||||
mouseenter: onMouseEnter,
|
onMouseenter: onMouseEnter,
|
||||||
mouseleave: onMouseLeave,
|
onMouseleave: onMouseLeave,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -349,8 +349,8 @@ describe('RangePicker', () => {
|
||||||
const wrapper = mount(RangePicker, {
|
const wrapper = mount(RangePicker, {
|
||||||
props: {
|
props: {
|
||||||
ranges: { 'recent two days': range },
|
ranges: { 'recent two days': range },
|
||||||
|
onOk: handleOk,
|
||||||
},
|
},
|
||||||
listeners: { ok: handleOk },
|
|
||||||
sync: false,
|
sync: false,
|
||||||
attachTo: 'body',
|
attachTo: 'body',
|
||||||
});
|
});
|
||||||
|
|
|
@ -11,13 +11,11 @@ describe('DropdownButton', () => {
|
||||||
disabled: false,
|
disabled: false,
|
||||||
trigger: ['hover'],
|
trigger: ['hover'],
|
||||||
visible: true,
|
visible: true,
|
||||||
|
onVisibleChange: () => {},
|
||||||
};
|
};
|
||||||
|
|
||||||
const wrapper = mount(Dropdown.Button, {
|
const wrapper = mount(Dropdown.Button, {
|
||||||
props,
|
props,
|
||||||
listeners: {
|
|
||||||
visibleChange: () => {},
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
const dropdownProps = wrapper.find({ name: 'ADropdown' }).props();
|
const dropdownProps = wrapper.find({ name: 'ADropdown' }).props();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue