mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[improvement] optimize jest fn called judgement (#3029)
This commit is contained in:
@@ -12,5 +12,5 @@ test('focus event', () => {
|
||||
});
|
||||
|
||||
wrapper.find('.van-password-input__security').trigger('touchstart');
|
||||
expect(focus.mock.calls.length).toEqual(1);
|
||||
expect(focus).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
Reference in New Issue
Block a user