summaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-08-31 21:46:20 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2018-08-31 21:49:07 +0530
commitc3c51c9d900ce0fea0e852ed4b2ca3c792c2e6cc (patch)
tree167920600c43ac13a009a474162a03d6ee0d2507 /src/app
parent1a2706658cfe50b12b563be4f7ae1b9516308c21 (diff)
utility.service- added test case
Added test case to test and cover processApiError() function. Issue-ID: APPC-1064 Change-Id: I2a6e4a131853bb36d54e40bfe38766b5e62d59b6 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/shared/services/utilityService/utility.service.spec.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/app/shared/services/utilityService/utility.service.spec.ts b/src/app/shared/services/utilityService/utility.service.spec.ts
index d865f04..c0cdb13 100644
--- a/src/app/shared/services/utilityService/utility.service.spec.ts
+++ b/src/app/shared/services/utilityService/utility.service.spec.ts
@@ -103,4 +103,11 @@ describe('UtilityService', () => {
let traceValue = localStorage.getItem("Tracelvl");
expect(traceValue).toBe("0")
}));
+
+ it('should test processApiError function', inject([UtilityService], (service: UtilityService) => {
+ let spy = spyOn(NotificationsService.prototype, 'error');
+ service.processApiError();
+ expect(spy).toHaveBeenCalled();
+
+ }));
}); \ No newline at end of file