用來產生Test Double(測試替身),可當成假資料來看,分為Spy、Stub 和Mock。 Spy. 對function call 蒐集資訊,便於對測試結果做驗證。 sinon.spy() 會回 ...
確定! 回上一頁