cjohansen/Sinon.JS — pull request #142 by glenjamin (2012-06-15 10:08:36+00:00)
Title: Easier stubbed fluent interfaces: stub.returnsThis()

See #130 - I can't seem to figure out how to attach this directly onto that.

I also couldn't figure out how to run the jslint config, so I might have missed some style things.

And finally: callbacks can be used with returnsValue, but not returnsArg. I've put returnsThis in the latter category, but I'm unsure why a distinction exists?