66import { ShapeModel } from '../model' ;
77import { QuickMockFileContract } from './local-disk.model' ;
88import { DocumentModel } from '../providers/canvas/canvas.model' ;
9+ import { APP_CONSTANTS } from '../providers/canvas/canvas.model' ;
910
1011describe ( 'shapes to document mapper' , ( ) => {
1112 describe ( 'mapFromShapesArrayToQuickMockFileDocument' , ( ) => {
@@ -33,6 +34,7 @@ describe('shapes to document mapper', () => {
3334 shapes : shapes ,
3435 } ,
3536 ] ,
37+ customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
3638 } ;
3739
3840 const expectedResult : QuickMockFileContract = {
@@ -44,6 +46,7 @@ describe('shapes to document mapper', () => {
4446 shapes : shapes ,
4547 } ,
4648 ] ,
49+ customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
4750 } ;
4851 // Act
4952 const result = mapFromShapesArrayToQuickMockFileDocument ( document ) ;
@@ -86,6 +89,7 @@ describe('shapes to document mapper', () => {
8689 shapes : shapes ,
8790 } ,
8891 ] ,
92+ customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
8993 } ;
9094
9195 const expectedResult : QuickMockFileContract = {
@@ -97,6 +101,7 @@ describe('shapes to document mapper', () => {
97101 shapes : shapes ,
98102 } ,
99103 ] ,
104+ customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
100105 } ;
101106
102107 // Act
@@ -119,6 +124,7 @@ describe('shapes to document mapper', () => {
119124 shapes : [ ] ,
120125 } ,
121126 ] ,
127+ customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
122128 } ;
123129
124130 const expectedResult : DocumentModel = {
@@ -130,6 +136,7 @@ describe('shapes to document mapper', () => {
130136 shapes : [ ] ,
131137 } ,
132138 ] ,
139+ customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
133140 } ;
134141 //act
135142 const result =
@@ -149,6 +156,7 @@ describe('shapes to document mapper', () => {
149156 shapes : [ ] ,
150157 } ,
151158 ] ,
159+ customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
152160 } ;
153161
154162 const expectedResult : DocumentModel = {
@@ -160,6 +168,7 @@ describe('shapes to document mapper', () => {
160168 shapes : [ ] ,
161169 } ,
162170 ] ,
171+ customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
163172 } ;
164173
165174 //act
@@ -191,6 +200,7 @@ describe('shapes to document mapper', () => {
191200 ] ,
192201 } ,
193202 ] ,
203+ customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
194204 } ;
195205
196206 const expectedResult : DocumentModel = {
@@ -213,6 +223,7 @@ describe('shapes to document mapper', () => {
213223 ] ,
214224 } ,
215225 ] ,
226+ customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
216227 } ;
217228
218229 //act
@@ -264,6 +275,7 @@ describe('shapes to document mapper', () => {
264275 shapes : shapesPageB ,
265276 } ,
266277 ] ,
278+ customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
267279 } ;
268280
269281 const expectedResult : DocumentModel = {
@@ -280,6 +292,7 @@ describe('shapes to document mapper', () => {
280292 shapes : shapesPageB ,
281293 } ,
282294 ] ,
295+ customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
283296 } ;
284297
285298 //act
@@ -331,6 +344,7 @@ describe('shapes to document mapper', () => {
331344 shapes : shapesPageB ,
332345 } ,
333346 ] ,
347+ customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
334348 } ;
335349
336350 const expectedResult : DocumentModel = {
@@ -342,6 +356,7 @@ describe('shapes to document mapper', () => {
342356 shapes : shapespageA . concat ( shapesPageB ) ,
343357 } ,
344358 ] ,
359+ customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
345360 } ;
346361
347362 //act
0 commit comments