From c01870adbd36867e4f8d2f7f6fb307ec1c9cc48c Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Tue, 3 Sep 2019 14:31:49 +0530 Subject: 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 --- src/app/about-us/aboutus.component.spec.ts | 11 ++++++++--- 1 file 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; @@ -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, { -- cgit 1.2.3-korg