aboutus.component.ts- added test cas 27/64327/2
authorArundathi Patil <arundpil@in.ibm.com>
Tue, 4 Sep 2018 06:34:16 +0000 (12:04 +0530)
committerTakamune Cho <tc012c@att.com>
Tue, 4 Sep 2018 19:07:17 +0000 (19:07 +0000)
wrote test cases to test and cover the new methods tlplus() and
tlMinus().

Issue-ID: APPC-1064
Change-Id: I8ceb987b622cad3a805a05a00496ac6dd307d53d
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
src/app/about-us/aboutus.component.spec.ts

index fb523b6..4df0316 100644 (file)
@@ -95,4 +95,16 @@ describe('ContacUsComponent', () => {
         });
         component.downloadLogFile();
     });
+
+    it('should test tlPlus function', inject([UtilityService], (utilService: UtilityService) => {
+        let spy1 = spyOn(UtilityService.prototype, 'getTracelvl');
+        component.tlPlus();
+        expect(spy1).toHaveBeenCalled();
+    }));
+
+    it('should test tlMinus function', inject([UtilityService], (utilService: UtilityService) => {
+        let spy1 = spyOn(UtilityService.prototype, 'getTracelvl');
+        component.tlMinus();
+        expect(spy1).toHaveBeenCalled();
+    }));
 });