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