Members
(static) any
(static) callback
Methods
(static) ignoreMockedCallsWhen()
Creates a scope in which unexpected and out of order function calls are ignored and only required calls are checked during execution.
Consider using Expectation#andOtherCallsShouldBeIgnored or Expectation#withOtherCallsIgnored instead.
(static) match()
Alias for Mach#Same
(static) mockFunction(thing) → {Mock}
Creates a new Mock.
Parameters:
| Name | Type | Description |
|---|---|---|
thing |
function | string | Either an existing function to mock or the name for the mock. |
Returns:
Mocked function.
- Type
- Mock
(static) mockObject(object, name)
Creates a new MockObject
Parameters:
| Name | Type | Description |
|---|---|---|
object |
object | Object to mock. |
name |
string | Name for the mocked object. |
(static) same(value, matcher) → {Same}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
object | Expected argument to a |
matcher |
function | Custom equality function in the form |
Returns:
Same object to use as an expected argument in an expectation.
- Type
- Same