aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-09-11 16:08:08 +0530
committerTakamune Cho <takamune.cho@att.com>2019-09-12 01:25:03 +0000
commitb408b500061f0f3f117a19fadaac6a62f9e4c4dd (patch)
tree355e71613435c503ba18573d69c9c3f11e318f49
parent34e10fd46cf7c8a7755843ba30fc8b3432216bca (diff)
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 <arundpil@in.ibm.com>
-rw-r--r--src/app/about-us/aboutus.component.spec.ts2
1 files changed, 1 insertions, 1 deletions
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', () => {