📅  最后修改于: 2022-03-11 14:56:38.481000             🧑  作者: Mango
代码示例1
expect(yourSpy).toHaveBeenCalledTimes(1);
.toHaveBeenCalledWith("yourArgument")
expect(object.func.calls.count()).toBe(1);