test: modify button edit event unit test case
This commit is contained in:
parent
a0a83576dc
commit
d628e0aaeb
|
@ -132,19 +132,6 @@ describe('f-button-edit', () => {
|
|||
expect(handleClick).toBeCalled();
|
||||
});
|
||||
|
||||
it('should emit event named mouseEnter when mouse move in text box', async () => {
|
||||
const handleClick = jest.fn();
|
||||
const wrapper = mount({
|
||||
setup() {
|
||||
return () => {
|
||||
return <ButtonEdit onMouseEnter={handleClick}></ButtonEdit>;
|
||||
};
|
||||
},
|
||||
});
|
||||
await wrapper.trigger('mouseenter');
|
||||
expect(handleClick).toBeCalled();
|
||||
});
|
||||
|
||||
it('should emit event named mouseEnterIcon when mouse move in append button', async () => {
|
||||
const handleClick = jest.fn();
|
||||
const wrapper = mount({
|
||||
|
|
Loading…
Reference in New Issue