@@ -36,7 +36,7 @@ test('Adapt SearchContext with filters, sort and geo rules ', () => {
3636 } )
3737
3838 expect ( searchParams . filter ) . toStrictEqual ( [
39- '_geoRadius(0, 0, 0)' ,
39+ '_geoRadius(0.00000 , 0.00000 , 0)' ,
4040 [ 'genres="Drama"' , 'genres="Thriller"' ] ,
4141 [ 'title="Ariel"' ] ,
4242 ] )
@@ -54,7 +54,7 @@ test('Adapt SearchContext with only facetFilters and geo rules ', () => {
5454 } )
5555
5656 expect ( searchParams . filter ) . toEqual ( [
57- '_geoRadius(0, 0, 0)' ,
57+ '_geoRadius(0.00000 , 0.00000 , 0)' ,
5858 [ 'genres="Drama"' , 'genres="Thriller"' ] ,
5959 [ 'title="Ariel"' ] ,
6060 ] )
@@ -70,7 +70,7 @@ test('Adapt SearchContext with only sort and geo rules ', () => {
7070 sort : 'id < 1' ,
7171 } )
7272
73- expect ( searchParams . filter ) . toEqual ( [ '_geoRadius(0, 0, 0)' ] )
73+ expect ( searchParams . filter ) . toEqual ( [ '_geoRadius(0.00000 , 0.00000 , 0)' ] )
7474 expect ( searchParams . sort ) . toStrictEqual ( [ 'id < 1' ] )
7575 expect ( searchParams . attributesToHighlight ) . toContain ( '*' )
7676 expect ( searchParams . attributesToHighlight ?. length ) . toBe ( 1 )
@@ -83,7 +83,7 @@ test('Adapt SearchContext with no sort abd no filters and geo rules ', () => {
8383 insideBoundingBox : '0,0,0,0' ,
8484 } )
8585
86- expect ( searchParams . filter ) . toEqual ( [ '_geoRadius(0, 0, 0)' ] )
86+ expect ( searchParams . filter ) . toEqual ( [ '_geoRadius(0.00000 , 0.00000 , 0)' ] )
8787 expect ( searchParams . attributesToHighlight ) . toContain ( '*' )
8888 expect ( searchParams . attributesToHighlight ?. length ) . toBe ( 1 )
8989} )
0 commit comments