new Stub()
- Source:
Methods
stub(object, methodName, overrideFunction) → {StubObjectMethod}
Call this method to stub over a function of an object with another function.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
object |
Object
|
Object which contains the method to be stubbed. |
methodName |
string
|
Name of the method inside the object which has to be stubbed. |
overrideFunction |
function
|
Function with which object[methodName] has to be stubbed. |
Returns:
- Type:
-
StubObjectMethod