aboutus.component.spec-Fix error due to codeChange 65/63765/2
authorArundathi Patil <arundpil@in.ibm.com>
Thu, 30 Aug 2018 09:45:09 +0000 (15:15 +0530)
committerTakamune Cho <tc012c@att.com>
Thu, 30 Aug 2018 17:50:20 +0000 (17:50 +0000)
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>
src/app/about-us/aboutus.component.spec.ts

index 7240280..fb523b6 100644 (file)
@@ -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]