From bded4b104540b8252c4b424ba475aab4820542a7 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Tue, 31 Jul 2018 14:25:02 +0530 Subject: 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 --- src/app/about-us/aboutus.component.spec.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/app/about-us') 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] -- cgit 1.2.3-korg