shouldAlwaysBeCalledWith(mockName, funcName, params)

A variant of 'shouldBeCalledWith' that defines a mocked function should be called with the same expected parameters on every call to the mock.

  • mockName {String} - This is the key for the mock. It should match the key from 'mockThisFunction'.
  • funcName {String} - The name of the function to be mocked. Should match the name from 'mockThisFunction'.
  • params {Array} - An array of expected parameters. First parameter of the function goes in index 0 and the nth parameter of the function goes into index n.
  • returns {Scenario}