From b408b500061f0f3f117a19fadaac6a62f9e4c4dd Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Wed, 11 Sep 2019 16:08:08 +0530 Subject: Aboutus component spec- error fix 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 --- src/app/about-us/aboutus.component.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/about-us/aboutus.component.spec.ts b/src/app/about-us/aboutus.component.spec.ts index 5656942..5a9e6ef 100644 --- a/src/app/about-us/aboutus.component.spec.ts +++ b/src/app/about-us/aboutus.component.spec.ts @@ -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', () => { -- cgit 1.2.3-korg