aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/about-us/aboutus.component.spec.ts
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-09-04 12:04:16 +0530
committerTakamune Cho <tc012c@att.com>2018-09-04 19:07:17 +0000
commita4083956ca455780fb3aa44819721f52bd71bbc2 (patch)
tree50fcc2f6487585688369abd29e79433fcd168d5c /src/app/about-us/aboutus.component.spec.ts
parent6e5e1659ffed54fab4b1c8a86fcc74440aa6e9b8 (diff)
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 <arundpil@in.ibm.com>
Diffstat (limited to 'src/app/about-us/aboutus.component.spec.ts')
-rw-r--r--src/app/about-us/aboutus.component.spec.ts12
1 files changed, 12 insertions, 0 deletions
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();
+ }));
});