Skip to content

Commit

Permalink
Fix sinonjs#1432: add details around expectations.withArgs behavior t…
Browse files Browse the repository at this point in the history
…o docs (sinonjs#1501)
  • Loading branch information
dcolucci authored and Franck Romano committed Oct 1, 2019
1 parent d264cb5 commit 1f2a7a5
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 1f2a7a5

Please sign in to comment.