Commit 4585f365 authored by jojohoch's avatar jojohoch
Browse files

[player] Add basic test for PlayerStateComponent

parent a995378b
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PlayerStateComponent } from './player-state.component';
import { AlwaysVisiblePagePipe } from 'player/src/app/pipes/always-visible-page.pipe';
import { ScrollPagesPipe } from 'player/src/app/pipes/scroll-pages.pipe';
describe('PlayerStateComponent', () => {
let component: PlayerStateComponent;
let fixture: ComponentFixture<PlayerStateComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [
PlayerStateComponent,
AlwaysVisiblePagePipe,
ScrollPagesPipe ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(PlayerStateComponent);
component = fixture.componentInstance;
component.pages = [];
component.playerConfig = {};
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment