Fixed error in spec file 01/57301/2
authorArundathi Patil <arundpil@in.ibm.com>
Tue, 24 Jul 2018 11:27:04 +0000 (16:57 +0530)
committerTakamune Cho <tc012c@att.com>
Mon, 30 Jul 2018 00:07:03 +0000 (00:07 +0000)
Test cases in parameter.component spec file failed with below error,
Error: No provider for NGXSpinnerService
Fixed this issue

Issue-ID: APPC-1064
Change-Id: I51d8e79888e182fef11d0c99936953ed0eabd380
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
src/app/vnfs/build-artifacts/parameter-definitions/parameter.component.spec.ts

index d539d6a..96cb9bb 100644 (file)
@@ -27,6 +27,7 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
 import {async, ComponentFixture, TestBed, inject} from '@angular/core/testing';
 import {NO_ERRORS_SCHEMA} from '@angular/core';
 import {FormsModule} from '@angular/forms';
+import { NgxSpinnerService } from 'ngx-spinner';
 import {NotificationService} from '../../../shared/services/notification.service';
 import {ParamShareService} from '../../../shared/services/paramShare.service';
 import {MappingEditorService} from '../../../shared/services/mapping-editor.service';
@@ -84,7 +85,7 @@ describe('ParameterComponent', () => {
             declarations: [ParameterComponent, HomeComponent, TestComponent, HelpComponent, AboutUsComponent, LogoutComponent],
             schemas: [NO_ERRORS_SCHEMA],
             imports: [HttpModule, FormsModule, RouterTestingModule.withRoutes(routes)],
-            providers: [UtilityService, NgProgress, BuildDesignComponent, ParamShareService, DialogService, NotificationService, HttpUtilService, MappingEditorService, NotificationsService]
+            providers: [UtilityService, NgProgress, BuildDesignComponent, ParamShareService, DialogService, NotificationService, HttpUtilService, MappingEditorService, NotificationsService, NgxSpinnerService]
         })
             .compileComponents();
     }));