aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/shared')
-rw-r--r--src/app/shared/services/utilityService/utility.service.spec.ts10
1 files changed, 10 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 4054a89..80bedeb 100644
--- a/src/app/shared/services/utilityService/utility.service.spec.ts
+++ b/src/app/shared/services/utilityService/utility.service.spec.ts
@@ -81,4 +81,14 @@ describe('UtilityService', () => {
let result = { output: {status: {code: '400'}}};
service.processApiSubscribe(result, 'uploadArtifact', '');
}));
+
+ it('should test checkNotNull function to return false on undefined object', inject([UtilityService], (service: UtilityService) => {
+ let obj;
+ expect(service.checkNotNull(obj)).toBe(false);
+ }));
+
+ it('should test checkNotNull function to return true on defined objects', inject([UtilityService], (service: UtilityService) => {
+ let obj = [{data : 'data'}];
+ expect(service.checkNotNull(obj)).toBe(true);
+ }));
});