mirror of
https://github.com/youzan/vant.git
synced 2025-12-24 02:02:09 +08:00
[improvement] optimize jest fn called judgement (#3029)
This commit is contained in:
@@ -53,7 +53,7 @@ test('raf', async () => {
|
||||
raf(spy);
|
||||
|
||||
await later(50);
|
||||
expect(spy.mock.calls.length).toBe(1);
|
||||
expect(spy).toHaveBeenCalledTimes(1);
|
||||
cancel(1);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user