Actually .toBeCalled is an alias to .toHaveBeenCalled, so they do the same thing.
From the docs:
.toHaveBeenCalled() Also under the alias: .toBeCalled()
Actually .toBeCalled is an alias to .toHaveBeenCalled, so they do the same thing.
From the docs:
.toHaveBeenCalled() Also under the alias: .toBeCalled()