import { ComponentFixture , TestBed , waitForAsync } from '@angular/core/testing' ; import { Component , Input } from '@angular/core' ; import { ShadowboxLayoutComponent } from './shadowbox-layout.component' ; @ Component ( { selector : 'm-shadowboxHeader' , template : '' , } ) class ShadowboxHeaderComponentMock { @ Input ( ) isScrollable ; } describe ( 'ShadowboxLayoutComponent' , ( ) => { let component ; let fixture ; beforeEach ( waitForAsync ( ( ) => { TestBed . configureTestingModule ( { declarations : [ ShadowboxLayoutComponent , ShadowboxHeaderComponentMock ] , } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( ShadowboxLayoutComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;