From: Arundathi Patil Date: Fri, 27 Jul 2018 10:36:59 +0000 (+0530) Subject: Fixed error in template-configuration spec X-Git-Tag: 1.4.0~82 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=2b95201745c791dc0e71004478cb34e4b896cda4;p=appc%2Fcdt.git Fixed error in template-configuration spec Test cases in template-configuration spec file failed with the below error, Error: No provider for UtilityService. Fixed this error. Issue-ID: APPC-1064 Change-Id: Ibb580435a3f70024988434eba74b61be80423990 Signed-off-by: Arundathi Patil --- diff --git a/src/app/vnfs/build-artifacts/template-holder/template-configuration/template-configuration.component.spec.ts b/src/app/vnfs/build-artifacts/template-holder/template-configuration/template-configuration.component.spec.ts index 4c682a4..06cea21 100644 --- a/src/app/vnfs/build-artifacts/template-holder/template-configuration/template-configuration.component.spec.ts +++ b/src/app/vnfs/build-artifacts/template-holder/template-configuration/template-configuration.component.spec.ts @@ -56,6 +56,7 @@ import { GoldenConfigurationComponent } from './template-configuration.component import { NgProgress } from 'ngx-progressbar'; import { BaseRequestOptions, Response, ResponseOptions, Http } from '@angular/http'; import { MockBackend, MockConnection } from '@angular/http/testing'; +import { UtilityService } from '../../../../shared/services/utilityService/utility.service'; describe('GoldenConfigurationComponent', () => { let component: GoldenConfigurationComponent; @@ -101,7 +102,7 @@ describe('GoldenConfigurationComponent', () => { imports: [FormsModule, BrowserModule, RouterTestingModule.withRoutes(routes), HttpModule, Ng2Bs3ModalModule, SimpleNotificationsModule.forRoot()], declarations: [GoldenConfigurationComponent, HomeComponent, TestComponent, HelpComponent, AboutUsComponent, LogoutComponent, AceEditorComponent], providers: [BuildDesignComponent, NgProgress, ParamShareService, DialogService, NotificationService, NgxSpinnerService, MockBackend, - BaseRequestOptions, + BaseRequestOptions, UtilityService, { provide: Http, useFactory: (backend: MockBackend, defaultOptions: BaseRequestOptions) => {