📜  开玩笑的时间 - Javascript 代码示例

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

代码示例1
const mockCallback = jest.fn(x => 42 + x);
forEach([0, 1], mockCallback);

// The mock function is called twice
expect(mockCallback.mock.calls.length).toBe(2);