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>
});
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();
+ }));
});