mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
[improvement] optimize jest fn called judgement (#3029)
This commit is contained in:
@@ -12,7 +12,7 @@ test('click event', () => {
|
||||
});
|
||||
|
||||
wrapper.trigger('click');
|
||||
expect(click.mock.calls.length).toBeTruthy();
|
||||
expect(click).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
test('arrow direction', () => {
|
||||
|
Reference in New Issue
Block a user