diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2019-09-03 14:31:49 +0530 |
---|---|---|
committer | Arundathi Patil <arundpil@in.ibm.com> | 2019-09-03 14:32:35 +0530 |
commit | c01870adbd36867e4f8d2f7f6fb307ec1c9cc48c (patch) | |
tree | 1bd3f7dcdedc747fd84be7e31c398a3f326118a4 | |
parent | 7dba8017adbc798f52371edb91f246285cd317d7 (diff) |
Aboutus Component spec- fixed error
Fixed the following error in spec file - Error: Can't bing show-close to
modal-header
Issue-ID: APPC-1632
Change-Id: I72bf1ea55e50f17cf4ab996d6a978d0a6ecf2c9d
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
-rw-r--r-- | src/app/about-us/aboutus.component.spec.ts | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/app/about-us/aboutus.component.spec.ts b/src/app/about-us/aboutus.component.spec.ts index af54b2b..5656942 100644 --- a/src/app/about-us/aboutus.component.spec.ts +++ b/src/app/about-us/aboutus.component.spec.ts @@ -25,8 +25,9 @@ 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, NgbModal } from '@ng-bootstrap/ng-bootstrap'; +import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { Observable } from 'rxjs/Observable'; +import { NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import 'rxjs/add/observable/from'; import 'rxjs/add/observable/empty'; import 'rxjs/add/observable/of'; @@ -40,7 +41,7 @@ import { AboutUsComponent } from './aboutus.component'; class MockService { doStuff() { return this; - } + }NoopAnimationsModule get() { return Observable.of(new Response( new ResponseOptions({ @@ -50,7 +51,7 @@ class MockService { } } -describe('ContacUsComponent', () => { +fdescribe('ContacUsComponent', () => { let component: AboutUsComponent; let fixture: ComponentFixture<AboutUsComponent>; @@ -58,6 +59,10 @@ describe('ContacUsComponent', () => { let http = new MockService(); TestBed.configureTestingModule({ + schemas: [ + CUSTOM_ELEMENTS_SCHEMA, + NO_ERRORS_SCHEMA + ], declarations: [AboutUsComponent], imports: [HttpModule, NgbModule.forRoot(), SimpleNotificationsModule.forRoot()], providers: [NgbModule, DialogService, UtilityService, { |