aboutsummaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-08-05 17:28:48 +0530
committerTakamune Cho <takamune.cho@att.com>2019-08-06 17:17:39 +0000
commit429ef4f52cff663b36a304dc8c96a8e01a7b56f6 (patch)
tree50d5307ea49bc7066cb71dcaead8fa6e942f3428 /src/app
parentb1e2c275d1c60e18543c3ab9491b449f96428a19 (diff)
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 <arundpil@in.ibm.com>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/about-us/aboutus.component.spec.ts6
1 files changed, 2 insertions, 4 deletions
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', () => {