From: Arundathi Patil Date: Tue, 24 Jul 2018 11:23:55 +0000 (+0530) Subject: Fixed error in spec file X-Git-Tag: 1.4.0~90 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F97%2F57297%2F3;p=appc%2Fcdt.git 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 --- 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