aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-07-31 14:25:02 +0530
committerTakamune Cho <tc012c@att.com>2018-08-01 14:11:47 +0000
commitbded4b104540b8252c4b424ba475aab4820542a7 (patch)
tree00f4a4868ad31274921742c54292bb1e1459adc1
parent185f9de09e5b84a2f50abafba3f6f9d38dcaf2e3 (diff)
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 <arundpil@in.ibm.com>
-rw-r--r--src/app/about-us/aboutus.component.spec.ts10
1 files changed, 7 insertions, 3 deletions
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]