Skip to content

Commit e05ee27

Browse files
committed
Fix search params tests
1 parent eb11525 commit e05ee27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/adapter/search-request-adapter/__tests__/search-params.tests.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)