Spoofing an API with SinonJS?
<p>When developing an API (in my case an API that wraps around a websockets service), is there a good way of giving it's skeletal implementation to another developer so that he can work independent of me? If my API is still in the design phase for example, I'm thinking that I could give an outline of the methods that will be available and all the possible return types.</p>

<p>I realise that I could just give him a dummy object with all the methods inside but it would be great if that dummy object could be tied in with his unit tests and so on. </p>

<p>I've been looking at [SinonJs][1]: <a href="http://sinonjs.org/" rel="nofollow">http://sinonjs.org/</a> and in particular at the Stub functionality it provides. However I am not sure if what I've outlined here is an appropriate use of stubs.</p>

<p>Any advice appreciated!</p>
