import { TestBed , async } from '@angular/core/testing' ; import { JoditAngularModule } from 'jodit-angular' ; import { AppComponent } from './app.component' ; describe ( 'AppComponent' , ( ) => { beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { imports : [ JoditAngularModule ] , declarations : [ AppComponent ] , } ) . compileComponents ( ) ; } ) ) ; it ( 'should create the app' , async ( ( ) => { const fixture = TestBed . createComponent ( AppComponent ) ; const app = fixture . debugElement . componentInstance ; expect ( app ) . toBeTruthy ( ) ; } ) ) ; it ( `should be display the Jodit html editor` , async ( ( ) => { const fixture = TestBed . createComponent ( AppComponent ) ; fixture . detectChanges ( ) ; const compiled = fixture . debugElement . nativeElement ; expect ( compiled . querySelector ( '.jodit_container' ) ) . toBeTruthy ( ) ; } ) ) ; } ) ;