.toHaveBeenCalled()
This assertion checks that a mock was executed at least once.
const mock = jest.fn();
jestUnexpected(mock).toHaveBeenCalled();
expected
function proxy() {
return p.invoke(func, this, slice.call(arguments));
}
was called
This assertion checks that a mock was executed at least once.