From 63f8c828cc6ebff1a41ba5eb8164ac9b36af2339 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Mon, 3 Sep 2018 16:00:17 +0530 Subject: reference-dataform.component: fixed test case 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 --- .../reference-dataform/reference-dataform.component.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/app/vnfs/build-artifacts/reference-dataform') diff --git a/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.component.spec.ts b/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.component.spec.ts index 2e58bac..77f1778 100644 --- a/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.component.spec.ts +++ b/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.component.spec.ts @@ -245,7 +245,8 @@ describe('ReferenceDataformComponent', () => { 'user-name': '', 'port-number': '', 'artifact-list': [] - } + }; + component.vnfcIdentifier = '346'; component.prepareReferenceObject(); expect(component.referenceDataObject['action-level']).toBe("vnf") -- cgit 1.2.3-korg