Skip to content

Commit

Permalink
Fix #1432: add details around expectations.withArgs behavior to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
David Colucci committed Jul 28, 2017
1 parent cbf1128 commit 8f7bd5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/release-source/release/mocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,15 @@ Expect the method to be called exactly `number` times.

Expect the method to be called with the provided arguments and possibly others.

An `expectation` instance only holds onto a single set of arguments specified with `withArgs`. Subsequent calls will overwrite the previously-specified set of arguments (even if they are different), so it is generally not intended that this method be invoked more than once per test case.


#### `expectation.withExactArgs(arg1, arg2, ...);`

Expect the method to be called with the provided arguments and no others.

An `expectation` instance only holds onto a single set of arguments specified with `withExactArgs`. Subsequent calls will overwrite the previously-specified set of arguments (even if they are different), so it is generally not intended that this method be invoked more than once per test case.


#### `expectation.on(obj);`

Expand Down

0 comments on commit 8f7bd5d

Please sign in to comment.