From 2a5996be159c303cde885f538e401fd4bb5e4f3a Mon Sep 17 00:00:00 2001
From: jojohoch <joachim.hoch@iqb.hu-berlin.de>
Date: Thu, 12 May 2022 14:24:24 +0200
Subject: [PATCH] [player] Add basic test for SectionComponent

---
 .../section/section.component.spec.ts         | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 projects/player/src/app/components/section/section.component.spec.ts

diff --git a/projects/player/src/app/components/section/section.component.spec.ts b/projects/player/src/app/components/section/section.component.spec.ts
new file mode 100644
index 000000000..10261e63c
--- /dev/null
+++ b/projects/player/src/app/components/section/section.component.spec.ts
@@ -0,0 +1,38 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+import { SectionComponent } from './section.component';
+
+describe('SectionComponent', () => {
+  let component: SectionComponent;
+  let fixture: ComponentFixture<SectionComponent>;
+
+  beforeEach(async () => {
+    await TestBed.configureTestingModule({
+      declarations: [
+        SectionComponent
+      ]
+    })
+      .compileComponents();
+  });
+
+  beforeEach(async () => {
+    fixture = TestBed.createComponent(SectionComponent);
+    component = fixture.componentInstance;
+    component.section = {
+      elements: [],
+      height: 400,
+      backgroundColor: '#ffffff',
+      dynamicPositioning: true,
+      autoColumnSize: true,
+      autoRowSize: true,
+      gridColumnSizes: '1fr 1fr',
+      gridRowSizes: '1fr',
+      activeAfterID: ''
+    };
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+
+});
-- 
GitLab