Skip to content

Commit 1bda7c4

Browse files
authored
Merge pull request #1326 from lucasfcosta/remove-unused-chain-behavior
Remove unused chain behavior
2 parents e0cfccc + 70e96f5 commit 1bda7c4

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

lib/sinon/behavior.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,6 @@ var proto = {
160160
"is not supported. Use \"stub.withArgs(...).onCall(...)\" " +
161161
"to define sequential behavior for calls with certain arguments."
162162
);
163-
},
164-
165-
chain: function chain() {
166-
/**
167-
* "this" is stub when method is called directly on stub, e.g. stub.returns(123);
168-
* "this.stub" exists when method is called from onCall chaining, e.g. stub.onCall(0).returns(123)
169-
*/
170-
return this.stub || this;
171163
}
172164
};
173165

0 commit comments

Comments
 (0)