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 1cbfb8ae8f71fa3beb0efab40fab30a4d4e81619..28013ea5f7d69b76d4bb7800cd3b9155fefd5eef 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 @@ -235,31 +235,41 @@ describe('ElementModelElementCodeMappingService', () => { text: 'a', id: 'value_1', imgSrc: null, - imgPosition: 'above' + imgPosition: 'above', + originListID: 'id', + originListIndex: 0 }, { text: 'b', id: 'value_2', imgSrc: null, - imgPosition: 'above' + imgPosition: 'above', + originListID: 'id', + originListIndex: 0 }, { text: 'c', id: 'value_3', imgSrc: null, - imgPosition: 'above' + imgPosition: 'above', + originListID: 'id', + originListIndex: 0 }, { text: 'd', id: 'value_4', imgSrc: null, - imgPosition: 'above' + imgPosition: 'above', + originListID: 'id', + originListIndex: 0 }, { text: 'e', id: 'value_5', imgSrc: null, - imgPosition: 'above' + imgPosition: 'above', + originListID: 'id', + originListIndex: 0 } ]; const elementModel: DropListElement = JSON.parse(JSON.stringify(dropList_130)); @@ -268,7 +278,9 @@ describe('ElementModelElementCodeMappingService', () => { text: 'e', id: 'value_5', imgSrc: null, - imgPosition: 'above' + imgPosition: 'above', + originListID: 'id', + originListIndex: 0 } ]; expect(service.mapToElementModelValue(['value_5'], elementModel)) @@ -281,31 +293,41 @@ describe('ElementModelElementCodeMappingService', () => { text: 'a', id: 'value_1', imgSrc: null, - imgPosition: 'above' + imgPosition: 'above', + originListID: 'id', + originListIndex: 0 }, { text: 'b', id: 'value_2', imgSrc: null, - imgPosition: 'above' + imgPosition: 'above', + originListID: 'id', + originListIndex: 1 }, { text: 'c', id: 'value_3', imgSrc: null, - imgPosition: 'above' + imgPosition: 'above', + originListID: 'id', + originListIndex: 2 }, { text: 'd', id: 'value_4', imgSrc: null, - imgPosition: 'above' + imgPosition: 'above', + originListID: 'id', + originListIndex: 3 }, { text: 'e', id: 'value_5', imgSrc: null, - imgPosition: 'above' + imgPosition: 'above', + originListID: 'id', + originListIndex: 4 } ]; const elementModel: DropListElement = JSON.parse(JSON.stringify(dropList_130)); @@ -314,7 +336,9 @@ describe('ElementModelElementCodeMappingService', () => { text: 'e', id: 'value_5', imgSrc: null, - imgPosition: 'above' + imgPosition: 'above', + originListID: 'id', + originListIndex: 4 } ]; expect(service.mapToElementModelValue(['value_5'], elementModel))