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