Skip to content

Commit

Permalink
Remove confusing .withArgs from spy documentation (#1438)
Browse files Browse the repository at this point in the history
See #1437
  • Loading branch information
mroderick authored and mantoni committed May 30, 2017
1 parent 9ca272e commit 5f989a8
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions docs/_releases/v2.0.0/spies.md
Expand Up @@ -157,8 +157,6 @@ Creates a spy that only records calls when the received arguments match those pa
"should call method once with each argument": function () {
var object = { method: function () {} };
var spy = sinon.spy(object, "method");
spy.withArgs(42);
spy.withArgs(1);

object.method(42);
object.method(1);
Expand Down
2 changes: 0 additions & 2 deletions docs/_releases/v2.1.0/spies.md
Expand Up @@ -157,8 +157,6 @@ Creates a spy that only records calls when the received arguments match those pa
"should call method once with each argument": function () {
var object = { method: function () {} };
var spy = sinon.spy(object, "method");
spy.withArgs(42);
spy.withArgs(1);

object.method(42);
object.method(1);
Expand Down
2 changes: 0 additions & 2 deletions docs/_releases/v2.2.0/spies.md
Expand Up @@ -157,8 +157,6 @@ Creates a spy that only records calls when the received arguments match those pa
"should call method once with each argument": function () {
var object = { method: function () {} };
var spy = sinon.spy(object, "method");
spy.withArgs(42);
spy.withArgs(1);

object.method(42);
object.method(1);
Expand Down
2 changes: 0 additions & 2 deletions docs/_releases/v2.3.0/spies.md
Expand Up @@ -157,8 +157,6 @@ Creates a spy that only records calls when the received arguments match those pa
"should call method once with each argument": function () {
var object = { method: function () {} };
var spy = sinon.spy(object, "method");
spy.withArgs(42);
spy.withArgs(1);

object.method(42);
object.method(1);
Expand Down
2 changes: 0 additions & 2 deletions docs/_releases/v2.3.1/spies.md
Expand Up @@ -157,8 +157,6 @@ Creates a spy that only records calls when the received arguments match those pa
"should call method once with each argument": function () {
var object = { method: function () {} };
var spy = sinon.spy(object, "method");
spy.withArgs(42);
spy.withArgs(1);

object.method(42);
object.method(1);
Expand Down
2 changes: 0 additions & 2 deletions docs/_releases/v2.3.2/spies.md
Expand Up @@ -157,8 +157,6 @@ Creates a spy that only records calls when the received arguments match those pa
"should call method once with each argument": function () {
var object = { method: function () {} };
var spy = sinon.spy(object, "method");
spy.withArgs(42);
spy.withArgs(1);

object.method(42);
object.method(1);
Expand Down

0 comments on commit 5f989a8

Please sign in to comment.