From: Arundathi Patil Date: Mon, 30 Jul 2018 09:53:25 +0000 (+0530) Subject: Fixed error in param-name-value spec file X-Git-Tag: 1.4.0~68 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=a7d223b6c02187f72cf481ab115d5db9e11a8edc;p=appc%2Fcdt.git Fixed error in param-name-value spec file Test cases in param-name-value.component.spec file failed with below error, Error: No Provider for Utility service Fixed this error Issue-ID: APPC-1064 Change-Id: Ie0e63be45b1cdde0bd2169168c562452babd6aa5 Signed-off-by: Arundathi Patil --- diff --git a/src/app/vnfs/build-artifacts/template-holder/param-name-value/param-name-value.component.spec.ts b/src/app/vnfs/build-artifacts/template-holder/param-name-value/param-name-value.component.spec.ts index 705f430..e549238 100644 --- a/src/app/vnfs/build-artifacts/template-holder/param-name-value/param-name-value.component.spec.ts +++ b/src/app/vnfs/build-artifacts/template-holder/param-name-value/param-name-value.component.spec.ts @@ -58,6 +58,7 @@ import { NgProgress } from 'ngx-progressbar'; import { BaseRequestOptions, Response, ResponseOptions, Http } from '@angular/http'; import { MockBackend, MockConnection } from '@angular/http/testing'; import { NgxSpinnerService } from 'ngx-spinner'; +import { UtilityService } from '../../../../shared/services/utilityService/utility.service'; describe('GoldenConfigurationMappingComponent', () => { @@ -103,7 +104,7 @@ describe('GoldenConfigurationMappingComponent', () => { TestBed.configureTestingModule({ imports: [FormsModule, BrowserModule, RouterTestingModule.withRoutes(routes), HttpModule, Ng2Bs3ModalModule, SimpleNotificationsModule.forRoot()], declarations: [GoldenConfigurationMappingComponent, HomeComponent, TestComponent, HelpComponent, AboutUsComponent, LogoutComponent, AceEditorComponent], - providers: [BuildDesignComponent, NgProgress, ParamShareService, DialogService, NotificationService, MockBackend, + providers: [UtilityService, BuildDesignComponent, NgProgress, ParamShareService, DialogService, NotificationService, MockBackend, HttpUtilService, MappingEditorService, NotificationsService, NgxSpinnerService, BaseRequestOptions, {