Sinon's stub method takes an object and the name of the function to stub, and replaces that function with a 'spy'. You can assert a spy has been called with ...
確定! 回上一頁