I needed a solution for this because my code was calling the new operator. I wanted to mock the object that the new call created. var MockExample = sinon.stub ...
確定! 回上一頁