File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,10 @@ describe('QueryLeaf', () => {
178178 // Check if projection includes array element access
179179 if ( commands [ 0 ] . type === 'FIND' && commands [ 0 ] . projection ) {
180180 expect ( commands [ 0 ] . projection ) . toBeDefined ( ) ;
181- expect ( commands [ 0 ] . projection [ 'items.0.id' ] ) . toBe ( 1 ) ;
181+ expect ( commands [ 0 ] . projection [ 'id' ] ) . toBeDefined ( ) ;
182+ expect ( commands [ 0 ] . projection [ 'id' ] [ '$getField' ] ) . toBeDefined ( ) ;
183+ expect ( commands [ 0 ] . projection [ 'id' ] [ '$getField' ] [ 'field' ] ) . toBe ( 'id' ) ;
184+ expect ( commands [ 0 ] . projection [ 'id' ] [ '$getField' ] [ 'input' ] ) . toBeDefined ( ) ;
182185 expect ( commands [ 0 ] . projection [ 'items' ] ) . toBe ( 1 ) ;
183186 }
184187 } ) ;
@@ -390,4 +393,4 @@ describe('QueryLeaf', () => {
390393 expect ( result [ 0 ] ) . toHaveProperty ( 'age' ) ;
391394 } ) ;
392395 } ) ;
393- } ) ;
396+ } ) ;
You can’t perform that action at this time.
0 commit comments