import { ComponentFixture , TestBed } from '@angular/core/testing' ; import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core' ; import { FormsModule , ReactiveFormsModule } from '@angular/forms' ; import { NgbModule } from '@ng-bootstrap/ng-bootstrap' ; import { SchemaValidationSampleComponent } from './schema-validation-sample.component' ; import { ObliqueTestingModule } from 'projects/oblique/src/lib/oblique-testing.module' ; describe ( 'ObSchemaValidationSampleComponent' , ( ) => { let component ; let fixture ; beforeEach ( ( ) => { TestBed . configureTestingModule ( { imports : [ FormsModule , ReactiveFormsModule , NgbModule , ObliqueTestingModule ] , declarations : [ SchemaValidationSampleComponent ] , schemas : [ CUSTOM_ELEMENTS_SCHEMA ] } ) . compileComponents ( ) ; } ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( SchemaValidationSampleComponent ) ; component = fixture . componentInstance ; component . ngOnInit ( ) ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;