UNPKG

coreui-angular-ex

Version:

CoreUI Components Library for Angular

34 lines (28 loc) 1.13 kB
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { CarouselInnerComponent } from './carousel-inner.component'; import { CarouselService } from '../carousel.service'; import { CarouselState } from '../carousel-state'; describe('CarouselInnerComponent', () => { let component: CarouselInnerComponent; let fixture: ComponentFixture<CarouselInnerComponent>; let service: CarouselService; let state: CarouselState; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ providers: [CarouselService, CarouselState], imports: [NoopAnimationsModule, CarouselInnerComponent] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(CarouselInnerComponent); service = TestBed.inject(CarouselService); state = TestBed.inject(CarouselState); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });