使用 sinon.test() 包裹測試體可以讓我們使用sinon沙盒特性,其允許我們使用 this.spy() , this.stub() 和 this.mock() 來建立spies, stubs和mocks。
確定! 回上一頁