對function call 蒐集資訊,便於對測試結果做驗證。sinon.spy() 會回傳一個Spy ... mock.restore();; // 5) Verifies all expectations on the mock.
確定! 回上一頁