File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -167,10 +167,10 @@ describe.each([
167167 const client = await getClient ( permission ) ;
168168
169169 const response = await client . index ( index . uid ) . searchGet ( "prince" , {
170- attributesToSearchOn : null ,
170+ attributesToSearchOn : null , // same as without the option
171171 } ) ;
172172
173- expect ( response ) . toMatchSnapshot ( ) ;
173+ expect ( response . hits . length ) . toEqual ( 2 ) ;
174174 } ) ;
175175
176176 test ( `${ permission } key: search with options` , async ( ) => {
Original file line number Diff line number Diff line change @@ -652,10 +652,10 @@ describe.each([
652652 const client = await getClient ( permission ) ;
653653
654654 const response = await client . index ( index . uid ) . search ( "prince" , {
655- attributesToSearchOn : null ,
655+ attributesToSearchOn : null , // same as without the option
656656 } ) ;
657657
658- expect ( response ) . toMatchSnapshot ( ) ;
658+ expect ( response . hits . length ) . toEqual ( 2 ) ;
659659 } ) ;
660660
661661 test ( `${ permission } key: search with array options` , async ( ) => {
You can’t perform that action at this time.
0 commit comments