Open crookse opened 2 years ago
What:
Spies have .verify(...).toBeCalledWithArgs(...). Mocks should use this logic in the .expects(...) method chaining.
.verify(...).toBeCalledWithArgs(...)
.expects(...)
Why:
Would be nice to create an expectation on a mock that a method was called with args.
Below is a list of tasks that must be completed before this issue can be closed.
const mock = Mock(...).create(); mock.expects("someMethod").toBeCalledWithArgs(...); mock.verifyExpectations();
i still need to document this
Summary
What:
Spies have
.verify(...).toBeCalledWithArgs(...)
. Mocks should use this logic in the.expects(...)
method chaining.Why:
Would be nice to create an expectation on a mock that a method was called with args.
Acceptance Criteria
Below is a list of tasks that must be completed before this issue can be closed.
Example Pseudo Code (for implementation)