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:
@@ -13,5 +13,5 @@ test('change event', () => {
|
||||
|
||||
wrapper.find('.van-switch').trigger('click');
|
||||
|
||||
expect(onChange.mock.calls[0]).toBeTruthy();
|
||||
expect(onChange).toHaveBeenCalledWith(true);
|
||||
});
|
||||
|
Reference in New Issue
Block a user