📜  笑话模拟实现 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:30.642000             🧑  作者: Mango

代码示例4
test("mock.calls", () => {
  const mockFn = jest.fn();
  mockFn(1, 2);

  expect(mockFn.mock.calls).toEqual([[1, 2]]);
});