In addition to the stub, we also created a spy. We can use a normal function as a callback, but using spy will make sinon.assert.calledOnce It is more ...
確定! 回上一頁