什么时候应该调用这些方法中的每一个,为什么?
const spyStart = spyOn(el, 'func1');
expect(spyStart).toHaveBeenCalled();
const spyStart = spyOn(el, 'func1');
expect(spyStart).toBeCalled();
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3139 次 |
| 最近记录: |