@@ -454,7 +454,7 @@ describe('syncObject', () => {
454
454
const result = await service . syncObject ( path , bucketId ) ;
455
455
456
456
expect ( result ) . toBeTruthy ( ) ;
457
- expect ( result . modified ) . toBeFalsy ( ) ;
457
+ expect ( result . modified ) . toBeTruthy ( ) ;
458
458
expect ( result . object ) . toEqual ( comsObject ) ;
459
459
460
460
expect ( ObjectModel . startTransaction ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -478,7 +478,7 @@ describe('syncObject', () => {
478
478
expect ( objectModelTrx . commit ) . toHaveBeenCalledTimes ( 1 ) ;
479
479
expect ( updateSpy ) . toHaveBeenCalledTimes ( 1 ) ;
480
480
expect ( updateSpy ) . toHaveBeenCalledWith ( expect . objectContaining ( {
481
- id : validUuidv4 , path : path , public : true , lastSyncedDate : expect . anything ( ) , userId : SYSTEM_USER
481
+ id : validUuidv4 , path : path , public : false , lastSyncedDate : expect . anything ( ) , userId : SYSTEM_USER
482
482
} ) , expect . any ( Object ) ) ;
483
483
} ) ;
484
484
@@ -492,7 +492,7 @@ describe('syncObject', () => {
492
492
const result = await service . syncObject ( path , bucketId ) ;
493
493
494
494
expect ( result ) . toBeTruthy ( ) ;
495
- expect ( result . modified ) . toBeFalsy ( ) ;
495
+ expect ( result . modified ) . toBeTruthy ( ) ;
496
496
expect ( result . object ) . toEqual ( comsObject ) ;
497
497
498
498
expect ( ObjectModel . startTransaction ) . toHaveBeenCalledTimes ( 1 ) ;
0 commit comments