Aboutus Component spec- fixed error 11/94811/1
authorArundathi Patil <arundpil@in.ibm.com>
Tue, 3 Sep 2019 09:01:49 +0000 (14:31 +0530)
committerArundathi Patil <arundpil@in.ibm.com>
Tue, 3 Sep 2019 09:02:35 +0000 (14:32 +0530)
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>
src/app/about-us/aboutus.component.spec.ts

index af54b2b..5656942 100644 (file)
@@ -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, {