From eaca77296ca7edc897387b86c8c95a1382da68b1 Mon Sep 17 00:00:00 2001
From: Msuf123
Date: Fri, 4 Oct 2024 03:11:45 +0530
Subject: [PATCH 1/2] Edited the file your_first_suite.md so that biggners can
understand the specs in a little more depth
---
_tutorials/your_first_suite.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/_tutorials/your_first_suite.md b/_tutorials/your_first_suite.md
index 75a4bc80..172e81bd 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.Spice function in 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 but the function setBar which is setting value of bar is never called.
From 43603aa9b486d3c48ba773fb04c4ff1c58b1c62c Mon Sep 17 00:00:00 2001
From: Msuf123
Date: Fri, 4 Oct 2024 03:22:35 +0530
Subject: [PATCH 2/2] Edited the file your_first_suite.md so that biggners can
understand the specs in a little more depth
---
_tutorials/your_first_suite.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/_tutorials/your_first_suite.md b/_tutorials/your_first_suite.md
index 172e81bd..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.Spice function in 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 but the function setBar which is setting value of bar is never called.
+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.
|
|