Fixed error in spec file 61/56861/2
authorArundathi Patil <arundpil@in.ibm.com>
Thu, 19 Jul 2018 08:53:13 +0000 (14:23 +0530)
committerPatrick Brady <pb071s@att.com>
Fri, 20 Jul 2018 22:44:05 +0000 (22:44 +0000)
All the test cases in template-configuration spec file failed with the
below error.

Error: "No provider for NGXSpinnerService".

Fixed this error.

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

index 8ad635b..4c682a4 100644 (file)
@@ -2,6 +2,8 @@
 ============LICENSE_START==========================================
 ===================================================================
 Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
+
+Copyright (C) 2018 IBM Intellectual Property. All rights reserved.
 ===================================================================
 
 Unless otherwise specified, all software contained herein is licensed
@@ -25,6 +27,7 @@ import { async, ComponentFixture, TestBed, inject } from '@angular/core/testing'
 import { By, BrowserModule } from '@angular/platform-browser';
 import { DebugElement, NO_ERRORS_SCHEMA } from '@angular/core';
 import { Component, OnInit, ViewChild, Input } from '@angular/core';
+import { NgxSpinnerService } from 'ngx-spinner';
 import { HttpUtilService } from '../../../../shared/services/httpUtil/http-util.service';
 import { MappingEditorService } from '../../../../shared/services/mapping-editor.service';
 import { ArtifactRequest } from '../../../../shared/models/index';
@@ -97,7 +100,7 @@ describe('GoldenConfigurationComponent', () => {
     TestBed.configureTestingModule({
       imports: [FormsModule, BrowserModule, RouterTestingModule.withRoutes(routes), HttpModule, Ng2Bs3ModalModule, SimpleNotificationsModule.forRoot()],
       declarations: [GoldenConfigurationComponent, HomeComponent, TestComponent, HelpComponent, AboutUsComponent, LogoutComponent, AceEditorComponent],
-      providers: [BuildDesignComponent, NgProgress, ParamShareService, DialogService, NotificationService, MockBackend,
+      providers: [BuildDesignComponent, NgProgress, ParamShareService, DialogService, NotificationService, NgxSpinnerService, MockBackend,
         BaseRequestOptions,
         {
           provide: Http,