From 429ef4f52cff663b36a304dc8c96a8e01a7b56f6 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Mon, 5 Aug 2019 17:28:48 +0530 Subject: aboutus component spec fix 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 --- src/app/about-us/aboutus.component.spec.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/app/about-us') diff --git a/src/app/about-us/aboutus.component.spec.ts b/src/app/about-us/aboutus.component.spec.ts index 29f9784..af54b2b 100644 --- a/src/app/about-us/aboutus.component.spec.ts +++ b/src/app/about-us/aboutus.component.spec.ts @@ -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', () => { -- cgit 1.2.3-korg