summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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