File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12419,16 +12419,16 @@ describe('document', function() {
12419
12419
const testSchema = new Schema ( {
12420
12420
__stateBeforeSuspension : {
12421
12421
field1 : String ,
12422
- field3 : { type : Schema . Types . Mixed } ,
12422
+ field3 : { type : Schema . Types . Mixed }
12423
12423
}
12424
12424
} ) ;
12425
12425
const Test = db . model ( 'Test' , testSchema ) ;
12426
- let eventObj = new Test ( {
12426
+ const eventObj = new Test ( {
12427
12427
__stateBeforeSuspension : { field1 : 'test' }
12428
- } )
12428
+ } ) ;
12429
12429
await eventObj . save ( ) ;
12430
12430
const newO = eventObj . toObject ( ) ;
12431
- newO . __stateBeforeSuspension . field3 = { '.ippo' : 5 } ;
12431
+ newO . __stateBeforeSuspension . field3 = { '.ippo' : 5 } ;
12432
12432
eventObj . set ( newO ) ;
12433
12433
await eventObj . save ( ) ;
12434
12434
You can’t perform that action at this time.
0 commit comments