Fixed error in template-configuration spec 15/57815/2
authorArundathi Patil <arundpil@in.ibm.com>
Fri, 27 Jul 2018 10:36:59 +0000 (16:06 +0530)
committerTakamune Cho <tc012c@att.com>
Wed, 1 Aug 2018 13:19:24 +0000 (13:19 +0000)
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 <arundpil@in.ibm.com>
src/app/vnfs/build-artifacts/template-holder/template-configuration/template-configuration.component.spec.ts

index 4c682a4..06cea21 100644 (file)
@@ -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) => {