aboutus component spec fix 76/92676/2
authorArundathi Patil <arundpil@in.ibm.com>
Mon, 5 Aug 2019 11:58:48 +0000 (17:28 +0530)
committerTakamune Cho <takamune.cho@att.com>
Tue, 6 Aug 2019 17:17:39 +0000 (17:17 +0000)
Fixed test case which was wrongly expecting a versionLogFile() method to
return an observable

Issue-ID: APPC-1632
Change-Id: I455b7707f647a8e5827a3181f695241679dafc72
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
src/app/about-us/aboutus.component.spec.ts

index 29f9784..af54b2b 100644 (file)
@@ -83,10 +83,8 @@ describe('ContacUsComponent', () => {
 
     it('should open modal', inject([NgbModule, Http], (ngbModule: NgbModule, http: Http) => {
         let content = 'test';
-        // component.open(content);
-        component.versionLogFile().subscribe((data) => {
-            expect(data.text()).toBe('some data');
-        });
+        component.versionLogFile();
+        expect(component.data.text()).toBe('some data');
     }));
 
     it('should download log file', () => {