summaryrefslogtreecommitdiffstats
path: root/src/app/shared/services/httpUtil
diff options
context:
space:
mode:
authorMohamed Asgar Samiulla(ma926a) <ma926a@us.att.com>2018-03-08 14:54:47 +0530
committerMohamed Asgar Samiulla(ma926a) <ma926a@us.att.com>2018-03-08 19:26:29 +0530
commit8ac6f161c2260e48a743df82e57b4ba24ce9795c (patch)
treecbe3d88ffe270bf15079a198621ccc3ba84f67f2 /src/app/shared/services/httpUtil
parent0e82fc327457a80ee79380580850526b3ceff732 (diff)
Added some test cases on httputil service.
Created a new test for dropdown.ts Issue-ID: APPC-717 Change-Id: Ic4e63520bbf16a7bd0d8ca0e0896d15ce3412d5d Signed-off-by: Mohamed Asgar Samiulla(ma926a) <ma926a@us.att.com>
Diffstat (limited to 'src/app/shared/services/httpUtil')
-rw-r--r--src/app/shared/services/httpUtil/http-util.service.spec.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/app/shared/services/httpUtil/http-util.service.spec.ts b/src/app/shared/services/httpUtil/http-util.service.spec.ts
index c6923bb..58dc3d3 100644
--- a/src/app/shared/services/httpUtil/http-util.service.spec.ts
+++ b/src/app/shared/services/httpUtil/http-util.service.spec.ts
@@ -25,11 +25,19 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
import {inject, TestBed} from '@angular/core/testing';
import {HttpUtilService} from './http-util.service';
+import {Http} from '@angular/http';
+
+class MockService {
+ doStuff() {
+ return this;
+ }
+}
describe('HttpUtilService', () => {
+ let http = new MockService();
beforeEach(() => {
TestBed.configureTestingModule({
- providers: [HttpUtilService]
+ providers: [HttpUtilService, {provide: Http, useValue: http}]
});
});