Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
krzkaczor authored and mroderick committed Feb 10, 2018
1 parent 5459212 commit c27e714
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/release-source/release/spies.md
Expand Up @@ -255,6 +255,10 @@ Returns `true` if spy was called at least once with the provided arguments.

Can be used for partial matching, Sinon only checks the provided arguments against actual arguments, so a call that received the provided arguments (in the same spots) and possibly others as well will return `true`.

#### `spy.calledOnceWith(arg1, arg2, ...);`

Returns `true` if spy was called at exactly once with the provided arguments.


#### `spy.alwaysCalledWith(arg1, arg2, ...);`

Expand All @@ -265,6 +269,10 @@ Returns `true` if spy was always called with the provided arguments (and possibl

Returns `true` if spy was called at least once with the provided arguments and no others.

#### `spy.calledOnceWithExactly(arg1, arg2, ...);`

Returns `true` if spy was called exactly once with the provided arguments and no others.


#### `spy.alwaysCalledWithExactly(arg1, arg2, ...);`

Expand Down

0 comments on commit c27e714

Please sign in to comment.