aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/vnfs/build-artifacts/reference-dataform
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-09-12 13:48:45 +0530
committerTakamune Cho <tc012c@att.com>2018-09-16 11:15:40 +0000
commit35011e9af54701ec1842aaa83984781214f2f92a (patch)
treed2fc927a85bdb91e7b218fd2cccbed21ded258c4 /src/app/vnfs/build-artifacts/reference-dataform
parent8bee05ce9dc7c038041afa97fa74fd831fc7c4f0 (diff)
reference-dataform.util- added test case
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>
Diffstat (limited to 'src/app/vnfs/build-artifacts/reference-dataform')
-rw-r--r--src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.spec.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.spec.ts b/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.spec.ts
index d18ee0b..aa7fbfa 100644
--- a/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.spec.ts
+++ b/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.spec.ts
@@ -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);
+ }));
});