swsnu / swppfall2018

22 stars 21 forks source link

Practice Session에서 다룬 http testing 질문 답변 #65

Open ahnjaeshin opened 5 years ago

ahnjaeshin commented 5 years ago

async wrapper는 해당 test spec에 async operation이 있으므로, 현 spec은 모든 async operation이 끝나기 전에 끝난 것이 아니다 라고 알려줍니다. 따라서 Http testing도 spec에 async 를 다는게 맞는거 같습니다. 하지만, 실제로 해본 결과, async wrapper가 없어도 test가 무사히 돌아가네요. 실제로 angular 공식 tutorial 도 async wrapper가 없습니다.

spy 관련 오타 고친 slide 재 업로드 되었습니다.