fixed error in aboutUs component spec 91/58191/4
authorArundathi Patil <arundpil@in.ibm.com>
Tue, 31 Jul 2018 08:55:02 +0000 (14:25 +0530)
committerTakamune Cho <tc012c@att.com>
Wed, 1 Aug 2018 14:11:47 +0000 (14:11 +0000)
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 <arundpil@in.ibm.com>
src/app/about-us/aboutus.component.spec.ts

index 9f71c8f..94eec94 100644 (file)
@@ -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]