reference-dataform.util- added test case 13/66013/2
authorArundathi Patil <arundpil@in.ibm.com>
Wed, 12 Sep 2018 08:18:45 +0000 (13:48 +0530)
committerTakamune Cho <tc012c@att.com>
Sun, 16 Sep 2018 11:15:40 +0000 (11:15 +0000)
Wrote test case to test and cover nullCheckForVnfcType() and
nullCheckForVnfcTypeList() functions.

Issue-ID: APPC-1064
Change-Id: I3a306b32ada7754010703fe382402fa0699c5f56
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.spec.ts

index d18ee0b..aa7fbfa 100644 (file)
@@ -63,4 +63,12 @@ describe('ReferenceDataFormUtil', () => {
         expect(spy).toHaveBeenCalled();
         expect(returnValue).toBe(true);
     }));
+
+
+    it('should test nullCheckForVnfcType and nullCheckForVnfcTypeList function', inject([ReferenceDataFormUtil], (service: ReferenceDataFormUtil) => {
+        let returnValueVnfcType = service.nullCheckForVnfcType(false);
+        let returnValueVnfcTypeList = service.nullCheckForVnfcTypeList('null');
+        expect(returnValueVnfcType).toBe(true);
+        expect(returnValueVnfcTypeList).toBe(true);
+    }));
 });