Which Jest method is used to check whether a function was called?
toHaveBeenCalled()
toHaveBeenTriggered()
toHaveBeenExecuted()
toHaveBeenInvoked()
This question is part of this quiz :