From 34e10fd46cf7c8a7755843ba30fc8b3432216bca Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Wed, 11 Sep 2019 19:37:08 +0530 Subject: 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 --- src/app/admin/view-edit/ansible-server.component.spec.ts | 1 + 1 file changed, 1 insertion(+) 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(); }); }); -- cgit 1.2.3-korg