sinon
sinon copied to clipboard
How to replace stub function in a stub instance?
If I have create a instance by var a = sinon.createStubInstance(MyContructor).
How can I replace one of the stubbed function like var stub = sinon.stub(object, "method", func);.
The main reason I am doing this is want to achieve multiple callback workaround as this mentioned
This does not seem like a bug or issue with the code, but rather a usage oriented question, for which this is the wrong channel. Try asking on the mailing lists or on IRC.