[Jasmine] Spies

Tools/jasmine 2016. 7. 29. 13:42
donaricano-btn

Spies

- We want to be able to check if functions have been called so We use it Spies

- It lets you spy on pieces of your program


1. spyOn()

1_1 src


1_2. spec

 

- This will spy on this fake person's sayHello() method.

'Tools > jasmine' 카테고리의 다른 글

[Jasmine] Matcher  (0) 2016.07.29
[Jasmine] Jasmine  (0) 2016.07.21
블로그 이미지

리딩리드

,