From b1f449e42ab42dd8cc338e21dcc5739e7076ff20 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Tue, 24 Jul 2018 16:53:55 +0530 Subject: Fixed error in spec file Test cases in myvnfs component spec file failed with the below error, Error: No provider for notification service Fixed this issue Issue-ID: APPC-1064 Change-Id: I39a451414e56b9db3eab7910c79d2d103b44380a Signed-off-by: Arundathi Patil --- src/app/vnfs/myvnfs/myvnfs.component.spec.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/vnfs/myvnfs/myvnfs.component.spec.ts b/src/app/vnfs/myvnfs/myvnfs.component.spec.ts index 5e0c51f..a1106d0 100644 --- a/src/app/vnfs/myvnfs/myvnfs.component.spec.ts +++ b/src/app/vnfs/myvnfs/myvnfs.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 @@ -37,6 +39,7 @@ import { UtilityService } from '.././../shared/services/utilityService/utility.s import { TidyTableModule } from '../../shared/modules/tidy-table/tidy-table.module'; import { NgModule } from '@angular/core'; import { NgProgress } from 'ngx-progressbar'; +import { NotificationsService } from 'angular2-notifications'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { @@ -60,7 +63,7 @@ describe('MyvnfsComponent', () => { providers: [ { provide: XHRBackend, useClass: MockBackend }, - NgProgress, UtilityService, ParamShareService, DialogService, NotificationService, HttpUtilService, MappingEditorService] + NgProgress, UtilityService, ParamShareService, DialogService, NotificationService, HttpUtilService, MappingEditorService, NotificationsService] }) .compileComponents(); @@ -165,4 +168,4 @@ describe('MyvnfsComponent', () => { expect(block).toBe(400); }); })) -}); +}); \ No newline at end of file -- cgit 1.2.3-korg