File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3684,8 +3684,8 @@ describe('Parse.Query testing', () => {
3684
3684
} ) ;
3685
3685
} ) ;
3686
3686
3687
- it ( " includeAll" , ( done ) => {
3688
- const child1 = new TestObject ( { foo : 'bar' , name : 'al ' } ) ;
3687
+ it ( ' includeAll' , ( done ) => {
3688
+ const child1 = new TestObject ( { foo : 'bar' , name : 'ac ' } ) ;
3689
3689
const child2 = new TestObject ( { foo : 'baz' , name : 'flo' } ) ;
3690
3690
const child3 = new TestObject ( { foo : 'bad' , name : 'mo' } ) ;
3691
3691
const parent = new Container ( { child1, child2, child3 } ) ;
@@ -3702,7 +3702,7 @@ describe('Parse.Query testing', () => {
3702
3702
equal ( result . child1 . foo , 'bar' ) ;
3703
3703
equal ( result . child2 . foo , 'baz' ) ;
3704
3704
equal ( result . child3 . foo , 'bad' ) ;
3705
- equal ( result . child1 . name , 'al ' ) ;
3705
+ equal ( result . child1 . name , 'ac ' ) ;
3706
3706
equal ( result . child2 . name , 'flo' ) ;
3707
3707
equal ( result . child3 . name , 'mo' ) ;
3708
3708
done ( ) ;
Original file line number Diff line number Diff line change @@ -558,6 +558,7 @@ RestQuery.prototype.runCount = function() {
558
558
} ) ;
559
559
} ;
560
560
561
+ // Augments this.response with all pointers on an object
561
562
RestQuery . prototype . handleIncludeAll = function ( ) {
562
563
if ( ! this . includeAll ) {
563
564
return ;
@@ -575,6 +576,7 @@ RestQuery.prototype.handleIncludeAll = function() {
575
576
}
576
577
// Add fields to include, keys, remove dups
577
578
this . include = [ ...new Set ( [ ...this . include , ...includeFields ] ) ] ;
579
+ // if this.keys not set, then all keys are already included
578
580
if ( this . keys ) {
579
581
this . keys = [ ...new Set ( [ ...this . keys , ...keyFields ] ) ] ;
580
582
}
You can’t perform that action at this time.
0 commit comments