import { ComponentFixture , TestBed , waitForAsync } from '@angular/core/testing' ; import { FloatingMenuComponent } from './floating-menu.component' ; import { ENTRY_COMPONENTS_PROVIDER } from '../../models/entry-components-provider' ; import { EntryComponentDirective } from '../../directives/entry-component.directive' ; import { MockComponent } from '../../test/mock-component' ; import { TranslateService } from '@ngx-translate/core' ; describe ( 'FloatingMenuComponent' , ( ) => { let component ; let fixture ; beforeEach ( waitForAsync ( ( ) => { TestBed . configureTestingModule ( { declarations : [ FloatingMenuComponent , EntryComponentDirective , MockComponent ( { selector : 'ansyn-imagery-rotation' , inputs : [ 'mapState' ] } ) ] , providers : [ { provide : ENTRY_COMPONENTS_PROVIDER , useValue : [ ] } , { provide : TranslateService , useValue : { instant : ( ) => '' } } ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( FloatingMenuComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;