Skip to content

Commit

Permalink
Merge pull request #1365 from MouseZero/master
Browse files Browse the repository at this point in the history
Fix Reference to deprecated API
  • Loading branch information
fatso83 authored Mar 27, 2017
2 parents d18762a + 464401d commit cdd9abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_releases/v2.1.0/stubs.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Replaces `object.method` with a stub function. An exception is thrown if the pro

The original function can be restored by calling `object.method.restore();` (or `stub.restore();`).

#### `var stub = sinon.stub(object, "method", func);`
#### `var stub = sinon.stub(object, "method").callsFake(func);`

Replaces `object.method` with a `func`, wrapped in a `spy`.

Expand Down

0 comments on commit cdd9abe

Please sign in to comment.