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 e7890a5
Show file tree
Hide file tree
Showing 16 changed files with 64 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/_releases/v1.17.6/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
4 changes: 4 additions & 0 deletions docs/_releases/v1.17.7/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
4 changes: 4 additions & 0 deletions docs/_releases/v2.0.0/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
4 changes: 4 additions & 0 deletions docs/_releases/v2.1.0/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
4 changes: 4 additions & 0 deletions docs/_releases/v2.2.0/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
4 changes: 4 additions & 0 deletions docs/_releases/v2.3.0/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
4 changes: 4 additions & 0 deletions docs/_releases/v2.3.1/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
4 changes: 4 additions & 0 deletions docs/_releases/v2.3.2/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
4 changes: 4 additions & 0 deletions docs/_releases/v2.3.3/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
4 changes: 4 additions & 0 deletions docs/_releases/v2.3.4/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
4 changes: 4 additions & 0 deletions docs/_releases/v2.3.5/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
4 changes: 4 additions & 0 deletions docs/_releases/v2.3.6/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
4 changes: 4 additions & 0 deletions docs/_releases/v2.3.7/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
4 changes: 4 additions & 0 deletions docs/_releases/v2.3.8/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
4 changes: 4 additions & 0 deletions docs/_releases/v2.4.0/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
4 changes: 4 additions & 0 deletions docs/_releases/v2.4.1/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 e7890a5

Please sign in to comment.