ansible-server component spec- test case fix 00/95500/2
authorArundathi Patil <arundpil@in.ibm.com>
Wed, 11 Sep 2019 14:07:08 +0000 (19:37 +0530)
committerTakamune Cho <takamune.cho@att.com>
Thu, 12 Sep 2019 01:24:38 +0000 (01:24 +0000)
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>
src/app/admin/view-edit/ansible-server.component.spec.ts

index 649c656..d3ccf96 100644 (file)
@@ -62,6 +62,7 @@ fdescribe('AnsibleServerComponent', () => {
 
     it('should create', () => {
         component.item = {};
+        sessionStorage.setItem("ansibleserver", "{\"server\":\"\",\"info\":[{\"ownerid\":\"\",\"regionid\":\"\",\"tenantid\":\"\"}]}");
         expect(component).toBeTruthy();
     });
 });