new Expectation()
- Source:
Members
isFulfilled :bool
- Source:
bool value if the expectation is fulfilled or not
Type:
- bool
Methods
withArgs() → {Expectation}
- Source:
Add condition about arguments
Returns:
- Type
- Expectation
returns() → {Expectation}
- Source:
Expects the function returns specified value
Returns:
- Type
- Expectation
throws() → {Expectation}
- Source:
Expects the function throws specified error
Returns:
- Type
- Expectation
resolves() → {Expectation}
- Source:
Expects the function returns a promise object that resolves specified value
Returns:
- Type
- Expectation
rejects() → {Expectation}
- Source:
Expects the function returns a promise object that rejects specified value
Returns:
- Type
- Expectation
calls() → {Expectation}
- Source:
Expects the function calls specified function
Returns:
- Type
- Expectation