The first thing to notice is that we are calling sinon.stub() to create a spy. ... calledOnce).to.be.ok; This tests in exactly the same way as our example ...
確定! 回上一頁