I was able mock multiple calls and check the arguments this way:
expect(mockFn.mock.calls).toEqual([
[arg1, arg2, ...], // First call
[arg1, arg2, ...] // Second call
]);
where mockFn is your mocked function name.
I was able mock multiple calls and check the arguments this way:
expect(mockFn.mock.calls).toEqual([
[arg1, arg2, ...], // First call
[arg1, arg2, ...] // Second call
]);
where mockFn is your mocked function name.