import { ComponentFixture , TestBed , waitForAsync } from '@angular/core/testing' ; import { Component , Input , AfterViewInit , ChangeDetectionStrategy , ChangeDetectorRef , ViewChild , ElementRef , HostListener , } from '@angular/core' ; import { CarouselComponent } from './carousel.component' ; describe ( 'CarouselComponent' , ( ) => { let component ; let fixture ; beforeEach ( waitForAsync ( ( ) => { TestBed . configureTestingModule ( { declarations : [ CarouselComponent ] , } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( CarouselComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;