var stub = sinon.stub(object, "method", func);. This has been removed from v3.0.0. Instead you should use stub(object, 'method').callsFake(fn).
確定! 回上一頁