method with a func , wrapped in a spy . As usual, object.method.restore(); can be used to restore the original method. var stub = sinon.stub( ...
確定! 回上一頁