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>
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 @@
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 @@
class MockService {
doStuff() {
return this;
- }
+ }NoopAnimationsModule
get() {
return Observable.of(new Response(
new ResponseOptions({
@@ -50,7 +51,7 @@
}
}
-describe('ContacUsComponent', () => {
+fdescribe('ContacUsComponent', () => {
let component: AboutUsComponent;
let fixture: ComponentFixture<AboutUsComponent>;
@@ -58,6 +59,10 @@
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, {