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
dcolucci authored and fatso83 committed Jul 28, 2017
1 parent 0d099aa commit 6c1aa55
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 6c1aa55

Please sign in to comment.