The original function can be restored by calling object.method.restore(); (or stub.restore(); ). var stub = sinon.stub(object, "method" ...
確定! 回上一頁