reference-dataform.component: fixed test case 23/64223/1
authorArundathi Patil <arundpil@in.ibm.com>
Mon, 3 Sep 2018 10:30:17 +0000 (16:00 +0530)
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>
Mon, 3 Sep 2018 10:30:31 +0000 (16:00 +0530)
Fixed test case that failed with error "cannot read property length of
undefined"

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

index 2e58bac..77f1778 100644 (file)
@@ -245,7 +245,8 @@ describe('ReferenceDataformComponent', () => {
             'user-name': '',
             'port-number': '',
             'artifact-list': []
-        }
+        };
+        component.vnfcIdentifier = '346';
         component.prepareReferenceObject();
 
         expect(component.referenceDataObject['action-level']).toBe("vnf")