@@ -41,7 +41,7 @@ describe('createDocumentController', () => {
4141 activityId : 'ACTI1234' ,
4242 filename : 'testfile' ,
4343 mimeType : 'imgjpg' ,
44- length : 1234567
44+ filesize : 1234567
4545 } ,
4646 currentContext : TEST_CURRENT_CONTEXT
4747 } ;
@@ -52,7 +52,7 @@ describe('createDocumentController', () => {
5252 req as unknown as Request <
5353 never ,
5454 never ,
55- { documentId : string ; activityId : string ; filename : string ; mimeType : string ; length : number }
55+ { documentId : string ; activityId : string ; filename : string ; mimeType : string ; filesize : number }
5656 > ,
5757 res as unknown as Response
5858 ) ;
@@ -64,7 +64,7 @@ describe('createDocumentController', () => {
6464 req . body . activityId ,
6565 req . body . filename ,
6666 req . body . mimeType ,
67- req . body . length ,
67+ req . body . filesize ,
6868 { createdAt : expect . any ( Date ) , createdBy : TEST_CURRENT_CONTEXT . userId }
6969 ) ;
7070 expect ( res . status ) . toHaveBeenCalledWith ( 201 ) ;
@@ -78,7 +78,7 @@ describe('createDocumentController', () => {
7878 activityId : 'ACTI1234' ,
7979 filename : 'testfile' ,
8080 mimeType : 'imgjpg' ,
81- length : 1234567
81+ filesize : 1234567
8282 } ,
8383 currentContext : TEST_CURRENT_CONTEXT
8484 } ;
@@ -92,7 +92,7 @@ describe('createDocumentController', () => {
9292 req as unknown as Request <
9393 never ,
9494 never ,
95- { documentId : string ; activityId : string ; filename : string ; mimeType : string ; length : number }
95+ { documentId : string ; activityId : string ; filename : string ; mimeType : string ; filesize : number }
9696 > ,
9797 res as unknown as Response
9898 ) ;
@@ -104,7 +104,7 @@ describe('createDocumentController', () => {
104104 req . body . activityId ,
105105 req . body . filename ,
106106 req . body . mimeType ,
107- req . body . length ,
107+ req . body . filesize ,
108108 { createdAt : expect . any ( Date ) , createdBy : TEST_CURRENT_CONTEXT . userId }
109109 ) ;
110110 expect ( readUserSpy ) . toHaveBeenCalledTimes ( 1 ) ;
0 commit comments