Aboutus component spec- error fix 80/95480/2
authorArundathi Patil <arundpil@in.ibm.com>
Wed, 11 Sep 2019 10:38:08 +0000 (16:08 +0530)
committerTakamune Cho <takamune.cho@att.com>
Thu, 12 Sep 2019 01:25:03 +0000 (01:25 +0000)
Fixed the test case which was failing with following error- data.text is
not a function

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

index 5656942..5a9e6ef 100644 (file)
@@ -89,7 +89,7 @@ fdescribe('ContacUsComponent', () => {
     it('should open modal', inject([NgbModule, Http], (ngbModule: NgbModule, http: Http) => {
         let content = 'test';
         component.versionLogFile();
-        expect(component.data.text()).toBe('some data');
+        expect(component.data).toBe('some data');
     }));
 
     it('should download log file', () => {