SinonJS provides stand alone test spies, stubs and mocks. ... res = { // replace empty function with a spy send: sinon.spy() } indexPage.
確定! 回上一頁