mockThisFunction(mockName, funcName, object)

Mock any function from a given object. The most common use case would be to mock out a function in your proxy layer.

  • mockName {String} - This is the key for the mock. It will be used again in other functions and is used in Maddox to keep track of mocks.
  • funcName {String} - The name of the function to be mocked.
  • object {Object} - The object that contains the function to be mocked.
  • returns {Scenario}