From: Arundathi Patil Date: Tue, 31 Jul 2018 08:55:02 +0000 (+0530) Subject: fixed error in aboutUs component spec X-Git-Tag: 1.4.0~80 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F91%2F58191%2F4;p=appc%2Fcdt.git fixed error in aboutUs component spec Test cases in aboutus component spec file failed due to the changes made in ts file. Fixed these issues Issue-ID: APPC-1064 Change-Id: Ief9c517de5ecb57bac8787e064b2bec3f7c50f2c Signed-off-by: Arundathi Patil --- diff --git a/src/app/about-us/aboutus.component.spec.ts b/src/app/about-us/aboutus.component.spec.ts index 9f71c8f..94eec94 100644 --- a/src/app/about-us/aboutus.component.spec.ts +++ b/src/app/about-us/aboutus.component.spec.ts @@ -2,6 +2,8 @@ ============LICENSE_START========================================== =================================================================== Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. + +Modification Copyright (C) 2018 IBM. =================================================================== Unless otherwise specified, all software contained herein is licensed @@ -23,11 +25,13 @@ limitations under the License. import { async, ComponentFixture, TestBed, inject, tick, fakeAsync } from '@angular/core/testing'; import { Http, HttpModule, ConnectionBackend, BaseRequestOptions, Response, ResponseOptions } from '@angular/http'; import { MockBackend } from '@angular/http/testing'; -import { ModalDismissReasons, NgbModule } from '@ng-bootstrap/ng-bootstrap'; +import { ModalDismissReasons, NgbModule, NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/from'; import 'rxjs/add/observable/empty'; import 'rxjs/add/observable/of'; +import { SimpleNotificationsModule, NotificationsService } from 'angular2-notifications'; +import { DialogService } from 'ng2-bootstrap-modal'; import { AboutUsComponent } from './aboutus.component'; @@ -46,8 +50,8 @@ describe('ContacUsComponent', () => { TestBed.configureTestingModule({ declarations: [AboutUsComponent], - imports: [HttpModule, NgbModule.forRoot()], - providers: [NgbModule, { + imports: [HttpModule, NgbModule.forRoot(), SimpleNotificationsModule.forRoot()], + providers: [NgbModule, DialogService, { provide: Http, useFactory: (backend: ConnectionBackend, defaultOptions: BaseRequestOptions) => { return new Http(backend, defaultOptions); }, deps: [MockBackend, BaseRequestOptions]