Skip to content
Snippets Groups Projects
Commit 33b9bd7e authored by jojohoch's avatar jojohoch
Browse files

[player] Fix test for PageScrollButtonComponent

parent 8f0a8b33
No related branches found
No related tags found
No related merge requests found
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing';
import { Component, Input } from '@angular/core';
import { Section } from 'common/models/section';
import { PageScrollButtonComponent } from './page-scroll-button.component'; import { PageScrollButtonComponent } from './page-scroll-button.component';
describe('PageScrollButtonComponent', () => { describe('PageScrollButtonComponent', () => {
let component: PageScrollButtonComponent; let component: PageScrollButtonComponent;
let fixture: ComponentFixture<PageScrollButtonComponent>; let fixture: ComponentFixture<PageScrollButtonComponent>;
@Component({ selector: 'aspect-section', template: '' })
class SectionComponent {
@Input() section!: Section;
@Input() pageIndex!: number;
}
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
declarations: [PageScrollButtonComponent] declarations: [
PageScrollButtonComponent,
SectionComponent]
}) })
.compileComponents(); .compileComponents();
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment