Mock
(
template
)
- Parameters:
-
template <Object>
(Optional) An object whose methods should be stubbed out on the mock object. This object is used as the prototype of the mock object so instanceof works correctly.