From a4083956ca455780fb3aa44819721f52bd71bbc2 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Tue, 4 Sep 2018 12:04:16 +0530 Subject: aboutus.component.ts- added test cas 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 --- src/app/about-us/aboutus.component.spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/app/about-us/aboutus.component.spec.ts b/src/app/about-us/aboutus.component.spec.ts index fb523b6..4df0316 100644 --- a/src/app/about-us/aboutus.component.spec.ts +++ b/src/app/about-us/aboutus.component.spec.ts @@ -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(); + })); }); -- cgit 1.2.3-korg