File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -698,20 +698,21 @@ describe('miscellaneous', function () {
698
698
expect ( object instanceof Parse . Object ) . toBeTruthy ( ) ;
699
699
if ( triggerTime == 0 ) {
700
700
// Create
701
- expect ( object . get ( 'a' ) ) . toEqual ( { b : { c : 0 } } ) ;
701
+ expect ( object . get ( 'a' ) ) . toEqual ( { b : { c : 0 } , d : 0 } ) ;
702
702
} else if ( triggerTime == 1 ) {
703
703
// Update
704
- expect ( object . get ( 'a' ) ) . toEqual ( { b : { c : 1 } } ) ;
704
+ expect ( object . get ( 'a' ) ) . toEqual ( { b : { c : 1 } , d : 2 } ) ;
705
705
} else {
706
706
throw new Error ( ) ;
707
707
}
708
708
triggerTime ++ ;
709
709
} ) ;
710
710
711
711
const obj = new Parse . Object ( 'GameScore' ) ;
712
- obj . set ( 'a' , { b : { c : 0 } } ) ;
712
+ obj . set ( 'a' , { b : { c : 0 } , d : 0 } ) ;
713
713
await obj . save ( ) ;
714
714
obj . set ( 'a.b.c' , 1 ) ;
715
+ obj . set ( 'a.d' , 2 ) ;
715
716
await obj . save ( ) ;
716
717
// Make sure the checking has been triggered
717
718
expect ( triggerTime ) . toBe ( 2 ) ;
You can’t perform that action at this time.
0 commit comments