From 2b95201745c791dc0e71004478cb34e4b896cda4 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Fri, 27 Jul 2018 16:06:59 +0530 Subject: 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 --- .../template-configuration/template-configuration.component.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/app/vnfs') 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) => { -- cgit 1.2.3-korg