Testing libraries like Sinon rely on having an object to stub on, for example: const stub = sinon.stub(obj, 'method');.
確定! 回上一頁