import { ComponentFixture , TestBed , inject , waitForAsync } from '@angular/core/testing' ; import { PortalModule } from '@angular/cdk/portal' ; import { PageActionsComponent } from './page-actions.component' ; import { ComponentFactoryResolver } from '@angular/core' ; xdescribe ( 'PageActionsComponent' , ( ) => { let component ; let fixture ; let componentFactoryResolver ; beforeEach ( waitForAsync ( ( ) => { TestBed . configureTestingModule ( { declarations : [ PageActionsComponent ] } ) . configureTestingModule ( { imports : [ PortalModule ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( PageActionsComponent ) ; inject ( [ ComponentFactoryResolver ] , ( cfr ) => { componentFactoryResolver = cfr ; } ) ( ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;