I wanted to mock the object that the new call created. var MockExample = sinon.stub(); MockExample.prototype.test = sinon.stub().returns("42"); var example ...
確定! 回上一頁