diff --git a/_tutorials/your_first_suite.md b/_tutorials/your_first_suite.md index 75a4bc80..d0435d22 100644 --- a/_tutorials/your_first_suite.md +++ b/_tutorials/your_first_suite.md @@ -460,7 +460,7 @@ A string passed to pending will be treated as a reason and displaye

Jasmine has test double functions called spies. A spy can stub any function and tracks calls to it and all arguments. A spy only exists in the describe or it block in which it is defined, and will be removed after each spec. -There are special matchers for interacting with spies.

+There are special matchers for interacting with spies.Spies function are never executed so our function setBar will not run insted our spy function will run.We can set a spy using spyOn function.Currently, we are calling spy function on setBar property of foo object.So our spy will keep track of how many times it ran,with what arguments,etc.Our setBar function ,which sets value of bar, is never called.