From 3ebecd0216f4fa2b92bd3f1ac3967c271f335153 Mon Sep 17 00:00:00 2001
From: rhenck <richard.henck@iqb.hu-berlin.de>
Date: Wed, 23 Oct 2024 11:26:09 +0200
Subject: [PATCH] Fix unit tests for new filename props

---
 .../drop-list/drop-logic.spec.ts              |  2 ++
 ...model-element-code-mapping.service.spec.ts | 24 +++++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/projects/common/components/input-elements/drop-list/drop-logic.spec.ts b/projects/common/components/input-elements/drop-list/drop-logic.spec.ts
index a22449233..cbc851e1c 100644
--- a/projects/common/components/input-elements/drop-list/drop-logic.spec.ts
+++ b/projects/common/components/input-elements/drop-list/drop-logic.spec.ts
@@ -8,7 +8,9 @@ describe('DropLogic', () => {
     originListID: 'droplist_1',
     originListIndex: 0,
     imgSrc: null,
+    imgFileName: '',
     audioSrc: null,
+    audioFileName: '',
     imgPosition: 'above'
   };
 
diff --git a/projects/player/src/app/services/element-model-element-code-mapping.service.spec.ts b/projects/player/src/app/services/element-model-element-code-mapping.service.spec.ts
index 781dabd8c..85428a4a5 100644
--- a/projects/player/src/app/services/element-model-element-code-mapping.service.spec.ts
+++ b/projects/player/src/app/services/element-model-element-code-mapping.service.spec.ts
@@ -239,7 +239,9 @@ describe('ElementModelElementCodeMappingService', () => {
         text: 'a',
         id: 'value_1',
         imgSrc: null,
+        imgFileName: '',
         audioSrc: null,
+        audioFileName: '',
         imgPosition: 'above',
         originListID: 'id',
         originListIndex: 0
@@ -248,7 +250,9 @@ describe('ElementModelElementCodeMappingService', () => {
         text: 'b',
         id: 'value_2',
         imgSrc: null,
+        imgFileName: '',
         audioSrc: null,
+        audioFileName: '',
         imgPosition: 'above',
         originListID: 'id',
         originListIndex: 0
@@ -257,7 +261,9 @@ describe('ElementModelElementCodeMappingService', () => {
         text: 'c',
         id: 'value_3',
         imgSrc: null,
+        imgFileName: '',
         audioSrc: null,
+        audioFileName: '',
         imgPosition: 'above',
         originListID: 'id',
         originListIndex: 0
@@ -266,7 +272,9 @@ describe('ElementModelElementCodeMappingService', () => {
         text: 'd',
         id: 'value_4',
         imgSrc: null,
+        imgFileName: '',
         audioSrc: null,
+        audioFileName: '',
         imgPosition: 'above',
         originListID: 'id',
         originListIndex: 0
@@ -275,7 +283,9 @@ describe('ElementModelElementCodeMappingService', () => {
         text: 'e',
         id: 'value_5',
         imgSrc: null,
+        imgFileName: '',
         audioSrc: null,
+        audioFileName: '',
         imgPosition: 'above',
         originListID: 'id',
         originListIndex: 0
@@ -287,7 +297,9 @@ describe('ElementModelElementCodeMappingService', () => {
         text: 'e',
         id: 'value_5',
         imgSrc: null,
+        imgFileName: '',
         audioSrc: null,
+        audioFileName: '',
         imgPosition: 'above',
         originListID: 'id',
         originListIndex: 0
@@ -303,7 +315,9 @@ describe('ElementModelElementCodeMappingService', () => {
         text: 'a',
         id: 'value_1',
         imgSrc: null,
+        imgFileName: '',
         audioSrc: null,
+        audioFileName: '',
         imgPosition: 'above',
         originListID: 'id',
         originListIndex: 0
@@ -312,7 +326,9 @@ describe('ElementModelElementCodeMappingService', () => {
         text: 'b',
         id: 'value_2',
         imgSrc: null,
+        imgFileName: '',
         audioSrc: null,
+        audioFileName: '',
         imgPosition: 'above',
         originListID: 'id',
         originListIndex: 1
@@ -321,7 +337,9 @@ describe('ElementModelElementCodeMappingService', () => {
         text: 'c',
         id: 'value_3',
         imgSrc: null,
+        imgFileName: '',
         audioSrc: null,
+        audioFileName: '',
         imgPosition: 'above',
         originListID: 'id',
         originListIndex: 2
@@ -330,7 +348,9 @@ describe('ElementModelElementCodeMappingService', () => {
         text: 'd',
         id: 'value_4',
         imgSrc: null,
+        imgFileName: '',
         audioSrc: null,
+        audioFileName: '',
         imgPosition: 'above',
         originListID: 'id',
         originListIndex: 3
@@ -339,7 +359,9 @@ describe('ElementModelElementCodeMappingService', () => {
         text: 'e',
         id: 'value_5',
         imgSrc: null,
+        imgFileName: '',
         audioSrc: null,
+        audioFileName: '',
         imgPosition: 'above',
         originListID: 'id',
         originListIndex: 4
@@ -351,7 +373,9 @@ describe('ElementModelElementCodeMappingService', () => {
         text: 'e',
         id: 'value_5',
         imgSrc: null,
+        imgFileName: '',
         audioSrc: null,
+        audioFileName: '',
         imgPosition: 'above',
         originListID: 'id',
         originListIndex: 4
-- 
GitLab