import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { of } from 'rxjs' ; import { LayoutFacade } from '../../../layout-core/+state/layout.facade' ; import { HamburgerComponent } from './hamburger.component' ; describe ( 'HamburgerComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { return TestBed . configureTestingModule ( { declarations : [ HamburgerComponent ] , providers : [ { provide : LayoutFacade , useValue : { openedSideMenu$ : of ( true ) , toggleSideMenu : jest . fn ( ) } } ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( HamburgerComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;