aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-09-03 16:00:17 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2018-09-03 16:00:31 +0530
commit63f8c828cc6ebff1a41ba5eb8164ac9b36af2339 (patch)
tree89062c4922880c7878844098e7d10f1323735ec1 /src
parent4e13224fbd288be91e658fd5315e1214289253d5 (diff)
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 <arundpil@in.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.component.spec.ts3
1 files changed, 2 insertions, 1 deletions
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")