resShouldAlwaysBeCalledWith(funcName, params)

A variant of 'shouldBeCalledWith' that defines a mocked function on the response object that should be called with the same expected parameters on every call to the Response Mock

  • 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 {HttpReqScenario}