Skip to content

Commit

Permalink
Remove unused chain behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfcosta committed Mar 12, 2017
1 parent e0cfccc commit 70e96f5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/sinon/behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,6 @@ var proto = {
"is not supported. Use \"stub.withArgs(...).onCall(...)\" " +
"to define sequential behavior for calls with certain arguments."
);
},

chain: function chain() {
/**
* "this" is stub when method is called directly on stub, e.g. stub.returns(123);
* "this.stub" exists when method is called from onCall chaining, e.g. stub.onCall(0).returns(123)
*/
return this.stub || this;
}
};

Expand Down

0 comments on commit 70e96f5

Please sign in to comment.