Fixed error in param-name-value spec file 95/57995/2
authorArundathi Patil <arundpil@in.ibm.com>
Mon, 30 Jul 2018 09:53:25 +0000 (15:23 +0530)
committerTakamune Cho <tc012c@att.com>
Thu, 2 Aug 2018 23:27:18 +0000 (23:27 +0000)
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 <arundpil@in.ibm.com>
src/app/vnfs/build-artifacts/template-holder/param-name-value/param-name-value.component.spec.ts

index 705f430..e549238 100644 (file)
@@ -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,
                 {