Fixed error in spec file 97/57297/3
authorArundathi Patil <arundpil@in.ibm.com>
Tue, 24 Jul 2018 11:23:55 +0000 (16:53 +0530)
committerTakamune Cho <tc012c@att.com>
Thu, 26 Jul 2018 13:12:04 +0000 (13:12 +0000)
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 <arundpil@in.ibm.com>
src/app/vnfs/myvnfs/myvnfs.component.spec.ts

index 5e0c51f..a1106d0 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
@@ -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