From a7d223b6c02187f72cf481ab115d5db9e11a8edc Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Mon, 30 Jul 2018 15:23:25 +0530 Subject: 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 --- .../param-name-value/param-name-value.component.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/app/vnfs/build-artifacts/template-holder') 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, { -- cgit 1.2.3-korg