Skip to content

Commit

Permalink
Merge pull request #1326 from lucasfcosta/remove-unused-chain-behavior
Browse files Browse the repository at this point in the history
Remove unused chain behavior
  • Loading branch information
fatso83 committed Mar 12, 2017
2 parents e0cfccc + 70e96f5 commit 1bda7c4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/sinon/behavior.js
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 1bda7c4

Please sign in to comment.