summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-09-11 19:37:08 +0530
committerTakamune Cho <takamune.cho@att.com>2019-09-12 01:24:38 +0000
commit34e10fd46cf7c8a7755843ba30fc8b3432216bca (patch)
treeec9a9cb043b9e39fbf98641cf5c98a0274c52459
parent4c616444e88b453bb26fcfee069b7a16dc356adb (diff)
ansible-server component spec- test case fix
Fixed test case in this component which failed with the error- cannot read property server of undefined Issue-ID: APPC-1632 Change-Id: I4f7ae899cc9243bf79776170bc3a06f3e49bd064 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
-rw-r--r--src/app/admin/view-edit/ansible-server.component.spec.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/admin/view-edit/ansible-server.component.spec.ts b/src/app/admin/view-edit/ansible-server.component.spec.ts
index 649c656..d3ccf96 100644
--- a/src/app/admin/view-edit/ansible-server.component.spec.ts
+++ b/src/app/admin/view-edit/ansible-server.component.spec.ts
@@ -62,6 +62,7 @@ fdescribe('AnsibleServerComponent', () => {
it('should create', () => {
component.item = {};
+ sessionStorage.setItem("ansibleserver", "{\"server\":\"\",\"info\":[{\"ownerid\":\"\",\"regionid\":\"\",\"tenantid\":\"\"}]}");
expect(component).toBeTruthy();
});
});