diff options
Diffstat (limited to 'src/app/shared/services/httpUtil/http-util.service.spec.ts')
-rw-r--r-- | src/app/shared/services/httpUtil/http-util.service.spec.ts | 10 |
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}] }); }); |