diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2018-08-30 15:15:09 +0530 |
---|---|---|
committer | Takamune Cho <tc012c@att.com> | 2018-08-30 17:50:20 +0000 |
commit | 569053f68177c57e84073b1d9e8cf3892c9d82d9 (patch) | |
tree | ad550b1c6b0b618788f98cf36461c7d4a7dbcf12 /src/app/about-us/aboutus.component.spec.ts | |
parent | 150b1eb01ac7455116e7e9f631ee237a9a87e6cb (diff) |
aboutus.component.spec-Fix error due to codeChange
All the test cases in about.component.spec file failed with below error.
Fixed this.
Error:'No provider for utility service'
Issue-ID: APPC-1064
Change-Id: I9d9e4937d91731eaf1245f861b5e9663c2453415
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'src/app/about-us/aboutus.component.spec.ts')
-rw-r--r-- | src/app/about-us/aboutus.component.spec.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/about-us/aboutus.component.spec.ts b/src/app/about-us/aboutus.component.spec.ts index 7240280..fb523b6 100644 --- a/src/app/about-us/aboutus.component.spec.ts +++ b/src/app/about-us/aboutus.component.spec.ts @@ -32,6 +32,8 @@ import 'rxjs/add/observable/empty'; import 'rxjs/add/observable/of'; import { SimpleNotificationsModule, NotificationsService } from 'angular2-notifications'; import { DialogService } from 'ng2-bootstrap-modal'; +import {UtilityService} from '../shared/services/utilityService/utility.service'; + import { AboutUsComponent } from './aboutus.component'; @@ -58,7 +60,7 @@ describe('ContacUsComponent', () => { TestBed.configureTestingModule({ declarations: [AboutUsComponent], imports: [HttpModule, NgbModule.forRoot(), SimpleNotificationsModule.forRoot()], - providers: [NgbModule, DialogService, { + providers: [NgbModule, DialogService, UtilityService, { provide: Http, useFactory: (backend: ConnectionBackend, defaultOptions: BaseRequestOptions) => { return new Http(backend, defaultOptions); }, deps: [MockBackend, BaseRequestOptions] |