Open
Description
test('jest mock', () => {
const mock = jest.fn();
mock('hello', 1);
expect(mock).toHaveBeenCalledExactlyOnceWith('hello', 3);
}
Output:
expect(received).toHaveBeenCalledExactlyOnceWith(expected)
Expected mock function to have been called exactly once with ["hello", 3], but it was called with "hello"
Should be something like:
Expected mock function to have been called exactly once with ["hello", 3], but it was called with "hello", 1
OR even better:
Expected mock function to have been called exactly once with ["hello", 3], but it was called with ["hello", 1]
Metadata
Metadata
Assignees
Labels
No labels