From: Arundathi Patil Date: Wed, 11 Sep 2019 14:07:08 +0000 (+0530) Subject: ansible-server component spec- test case fix X-Git-Tag: 1.7.0~17 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=34e10fd46cf7c8a7755843ba30fc8b3432216bca;p=appc%2Fcdt.git 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 --- 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(); }); });