Skip to content
Snippets Groups Projects
Commit 5aab62ef authored by jojohoch's avatar jojohoch
Browse files

[player] Fix basic test for SectionContainerComponent

parent 75326da0
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 { SectionContainerComponent } from './section-container.component'; import { SectionContainerComponent } from './section-container.component';
import { SectionComponent } from 'player/src/app/components/section/section.component';
describe('SectionContainerComponent', () => { describe('SectionContainerComponent', () => {
let component: SectionContainerComponent; let component: SectionContainerComponent;
...@@ -8,7 +9,8 @@ describe('SectionContainerComponent', () => { ...@@ -8,7 +9,8 @@ describe('SectionContainerComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
declarations: [ declarations: [
SectionContainerComponent SectionContainerComponent,
SectionComponent
] ]
}) })
.compileComponents(); .compileComponents();
...@@ -17,6 +19,18 @@ describe('SectionContainerComponent', () => { ...@@ -17,6 +19,18 @@ describe('SectionContainerComponent', () => {
beforeEach(() => { beforeEach(() => {
fixture = TestBed.createComponent(SectionContainerComponent); fixture = TestBed.createComponent(SectionContainerComponent);
component = fixture.componentInstance; component = fixture.componentInstance;
component.pageSections = [];
component.section = {
elements: [],
height: 400,
backgroundColor: '#ffffff',
dynamicPositioning: true,
autoColumnSize: true,
autoRowSize: true,
gridColumnSizes: '1fr 1fr',
gridRowSizes: '1fr',
activeAfterID: ''
};
fixture.detectChanges(); fixture.detectChanges();
}); });
......
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