From fe5bf3a03823b573f66a29b96d34d911b1c2fdfe Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Thu, 19 Jul 2018 14:23:13 +0530 Subject: Fixed error in spec file 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 --- .../template-configuration/template-configuration.component.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/app/vnfs/build-artifacts') diff --git a/src/app/vnfs/build-artifacts/template-holder/template-configuration/template-configuration.component.spec.ts b/src/app/vnfs/build-artifacts/template-holder/template-configuration/template-configuration.component.spec.ts index 8ad635b..4c682a4 100644 --- a/src/app/vnfs/build-artifacts/template-holder/template-configuration/template-configuration.component.spec.ts +++ b/src/app/vnfs/build-artifacts/template-holder/template-configuration/template-configuration.component.spec.ts @@ -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, -- cgit 1.2.3-korg