mirror of
https://github.com/youzan/vant.git
synced 2026-04-17 02:06:57 +08:00
[improvement] optimize jest fn called judgement (#3029)
This commit is contained in:
@@ -84,5 +84,5 @@ test('onClose callback', () => {
|
||||
|
||||
toast.clear();
|
||||
Toast.allowMultiple(false);
|
||||
expect(onClose.mock.calls.length).toEqual(1);
|
||||
expect(onClose).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user