@@ -5,7 +5,10 @@ import {
55} from './shapes-to-document.mapper' ;
66import { ShapeModel } from '../model' ;
77import { QuickMockFileContract } from './local-disk.model' ;
8- import { DocumentModel } from '../providers/canvas/canvas.model' ;
8+ import {
9+ createDefaultCanvasSize ,
10+ DocumentModel ,
11+ } from '../providers/canvas/canvas.model' ;
912import { APP_CONSTANTS } from '../providers/canvas/canvas.model' ;
1013
1114describe ( 'shapes to document mapper' , ( ) => {
@@ -35,6 +38,7 @@ describe('shapes to document mapper', () => {
3538 } ,
3639 ] ,
3740 customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
41+ size : createDefaultCanvasSize ( ) ,
3842 } ;
3943
4044 const expectedResult : QuickMockFileContract = {
@@ -47,6 +51,7 @@ describe('shapes to document mapper', () => {
4751 } ,
4852 ] ,
4953 customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
54+ size : createDefaultCanvasSize ( ) ,
5055 } ;
5156 // Act
5257 const result = mapFromShapesArrayToQuickMockFileDocument ( document ) ;
@@ -90,6 +95,7 @@ describe('shapes to document mapper', () => {
9095 } ,
9196 ] ,
9297 customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
98+ size : createDefaultCanvasSize ( ) ,
9399 } ;
94100
95101 const expectedResult : QuickMockFileContract = {
@@ -102,6 +108,7 @@ describe('shapes to document mapper', () => {
102108 } ,
103109 ] ,
104110 customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
111+ size : createDefaultCanvasSize ( ) ,
105112 } ;
106113
107114 // Act
@@ -125,6 +132,7 @@ describe('shapes to document mapper', () => {
125132 } ,
126133 ] ,
127134 customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
135+ size : createDefaultCanvasSize ( ) ,
128136 } ;
129137
130138 const expectedResult : DocumentModel = {
@@ -137,6 +145,7 @@ describe('shapes to document mapper', () => {
137145 } ,
138146 ] ,
139147 customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
148+ size : createDefaultCanvasSize ( ) ,
140149 } ;
141150 //act
142151 const result =
@@ -157,6 +166,7 @@ describe('shapes to document mapper', () => {
157166 } ,
158167 ] ,
159168 customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
169+ size : createDefaultCanvasSize ( ) ,
160170 } ;
161171
162172 const expectedResult : DocumentModel = {
@@ -169,6 +179,7 @@ describe('shapes to document mapper', () => {
169179 } ,
170180 ] ,
171181 customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
182+ size : createDefaultCanvasSize ( ) ,
172183 } ;
173184
174185 //act
@@ -201,6 +212,7 @@ describe('shapes to document mapper', () => {
201212 } ,
202213 ] ,
203214 customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
215+ size : createDefaultCanvasSize ( ) ,
204216 } ;
205217
206218 const expectedResult : DocumentModel = {
@@ -224,6 +236,7 @@ describe('shapes to document mapper', () => {
224236 } ,
225237 ] ,
226238 customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
239+ size : createDefaultCanvasSize ( ) ,
227240 } ;
228241
229242 //act
@@ -276,6 +289,7 @@ describe('shapes to document mapper', () => {
276289 } ,
277290 ] ,
278291 customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
292+ size : createDefaultCanvasSize ( ) ,
279293 } ;
280294
281295 const expectedResult : DocumentModel = {
@@ -293,6 +307,7 @@ describe('shapes to document mapper', () => {
293307 } ,
294308 ] ,
295309 customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
310+ size : createDefaultCanvasSize ( ) ,
296311 } ;
297312
298313 //act
@@ -345,6 +360,7 @@ describe('shapes to document mapper', () => {
345360 } ,
346361 ] ,
347362 customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
363+ size : createDefaultCanvasSize ( ) ,
348364 } ;
349365
350366 const expectedResult : DocumentModel = {
@@ -357,6 +373,7 @@ describe('shapes to document mapper', () => {
357373 } ,
358374 ] ,
359375 customColors : new Array ( APP_CONSTANTS . COLOR_SLOTS ) . fill ( null ) ,
376+ size : createDefaultCanvasSize ( ) ,
360377 } ;
361378
362379 //act
0 commit comments