From 5aab62ef7775ebe69a08688aa54b3b2fbd88a016 Mon Sep 17 00:00:00 2001
From: jojohoch <joachim.hoch@iqb.hu-berlin.de>
Date: Thu, 12 May 2022 19:08:38 +0200
Subject: [PATCH] [player] Fix basic test for SectionContainerComponent

---
 .../section-container.component.spec.ts          | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/projects/player/src/app/components/section-container/section-container.component.spec.ts b/projects/player/src/app/components/section-container/section-container.component.spec.ts
index 3da8c80f0..a72f25257 100644
--- a/projects/player/src/app/components/section-container/section-container.component.spec.ts
+++ b/projects/player/src/app/components/section-container/section-container.component.spec.ts
@@ -1,5 +1,6 @@
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { SectionContainerComponent } from './section-container.component';
+import { SectionComponent } from 'player/src/app/components/section/section.component';
 
 describe('SectionContainerComponent', () => {
   let component: SectionContainerComponent;
@@ -8,7 +9,8 @@ describe('SectionContainerComponent', () => {
   beforeEach(async () => {
     await TestBed.configureTestingModule({
       declarations: [
-        SectionContainerComponent
+        SectionContainerComponent,
+        SectionComponent
       ]
     })
       .compileComponents();
@@ -17,6 +19,18 @@ describe('SectionContainerComponent', () => {
   beforeEach(() => {
     fixture = TestBed.createComponent(SectionContainerComponent);
     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();
   });
 
-- 
GitLab