You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Specification (and each test are independent and does not interfere with each other)
21
+
// and the calculation instance that are used on spec 1 is different than the spec 2nd one.
22
+
// these test should be isolated from each other
7
23
it("should add two number",()=>{
24
+
console.log("calling our first specifications");
8
25
// creating a fake version of logger service by creating a new instance of it
9
26
// const logger = new LoggerService();
10
27
11
28
// jasmine will take the original spied object and beside calling the original functionality, it replaces the methods with a mock one instead of using it original one
12
29
// spyOn(logger, "log");
13
30
14
31
// if we want to do the above steps with a single line using jasmine.createSpyObj() method then
0 commit comments