Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Sinon method chaining weird behaviour #739
Sinon.js (v1.14.1) has a weird behaviour in method chaining, not sure it's meant to be or a bug:
Will always return "two" no matter what argument you call
On the other hand, this (JSBin):
works fine. I'm not sure that SinonJS supports chaining or not.
The "implementation detail" behind this is, that
I can see that this is not really intuitive, but it's not a bug. Maybe it could be clarified in the docs.