@@ -88,7 +88,7 @@ describe.each([
8888 await client
8989 . getIndex ( index . uid )
9090 . search ( 'prince' )
91- . then ( ( response : Types . SearchResponse ) => {
91+ . then ( ( response ) => {
9292 expect ( response ) . toHaveProperty ( 'hits' , expect . any ( Array ) )
9393 expect ( response ) . toHaveProperty ( 'offset' , 0 )
9494 expect ( response ) . toHaveProperty ( 'limit' , 20 )
@@ -102,7 +102,7 @@ describe.each([
102102 await client
103103 . getIndex ( index . uid )
104104 . search ( 'prince' , { limit : 1 } )
105- . then ( ( response : Types . SearchResponse ) => {
105+ . then ( ( response ) => {
106106 expect ( response ) . toHaveProperty ( 'hits' , expect . any ( Array ) )
107107 expect ( response ) . toHaveProperty ( 'offset' , 0 )
108108 expect ( response ) . toHaveProperty ( 'limit' , 1 )
@@ -116,7 +116,7 @@ describe.each([
116116 await client
117117 . getIndex ( index . uid )
118118 . search ( 'prince' , { limit : 1 } )
119- . then ( ( response : Types . SearchResponse ) => {
119+ . then ( ( response ) => {
120120 expect ( response ) . toHaveProperty ( 'hits' , expect . any ( Array ) )
121121 expect ( response ) . toHaveProperty ( 'offset' , 0 )
122122 expect ( response ) . toHaveProperty ( 'limit' , 1 )
@@ -132,7 +132,7 @@ describe.each([
132132 limit : 1 ,
133133 offset : 1 ,
134134 } )
135- . then ( ( response : Types . SearchResponse ) => {
135+ . then ( ( response ) => {
136136 expect ( response ) . toHaveProperty ( 'hits' , [
137137 {
138138 id : 4 ,
@@ -157,7 +157,7 @@ describe.each([
157157 cropLength : 5 ,
158158 matches : true ,
159159 } )
160- . then ( ( response : Types . SearchResponse ) => {
160+ . then ( ( response ) => {
161161 expect ( response ) . toHaveProperty ( 'hits' , expect . any ( Array ) )
162162 expect ( response ) . toHaveProperty ( 'offset' , 0 )
163163 expect ( response ) . toHaveProperty ( 'limit' , 20 )
@@ -184,7 +184,7 @@ describe.each([
184184 filters : 'title = "Le Petit Prince"' ,
185185 matches : true ,
186186 } )
187- . then ( ( response : Types . SearchResponse ) => {
187+ . then ( ( response ) => {
188188 expect ( response ) . toHaveProperty ( 'hits' , expect . any ( Array ) )
189189 expect ( response ) . toHaveProperty ( 'offset' , 0 )
190190 expect ( response ) . toHaveProperty ( 'limit' , 5 )
@@ -225,7 +225,7 @@ describe.each([
225225 filters : 'title = "Le Petit Prince"' ,
226226 matches : true ,
227227 } )
228- . then ( ( response : Types . SearchResponse ) => {
228+ . then ( ( response ) => {
229229 expect ( response ) . toHaveProperty ( 'hits' , expect . any ( Array ) )
230230 expect ( response ) . toHaveProperty ( 'offset' , 0 )
231231 expect ( response ) . toHaveProperty ( 'limit' , 5 )
@@ -260,7 +260,7 @@ describe.each([
260260 filters : 'title = "Le Petit Prince"' ,
261261 matches : true ,
262262 } )
263- . then ( ( response : Types . SearchResponse ) => {
263+ . then ( ( response ) => {
264264 expect ( response ) . toHaveProperty ( 'hits' , expect . any ( Array ) )
265265 expect ( response ) . toHaveProperty ( 'offset' , 0 )
266266 expect ( response ) . toHaveProperty ( 'limit' , 5 )
@@ -297,9 +297,9 @@ describe.each([
297297 facetFilters : [ 'genre:romance' ] ,
298298 facetsDistribution : [ 'genre' ] ,
299299 } )
300- . then ( ( response : Types . SearchResponse ) => {
300+ . then ( ( response ) => {
301301 expect ( response ) . toHaveProperty ( 'facetsDistribution' , {
302- genre : { adventure : 0 , fantasy : 0 , romance : 2 , " sci fi" : 0 , } ,
302+ genre : { adventure : 0 , fantasy : 0 , romance : 2 , ' sci fi' : 0 } ,
303303 } )
304304 expect ( response ) . toHaveProperty ( 'exhaustiveFacetsCount' , true )
305305 expect ( response ) . toHaveProperty ( 'hits' , expect . any ( Array ) )
@@ -313,7 +313,7 @@ describe.each([
313313 . search ( 'h' , {
314314 facetFilters : [ 'genre:sci fi' ] ,
315315 } )
316- . then ( ( response : Types . SearchResponse ) => {
316+ . then ( ( response ) => {
317317 expect ( response ) . toHaveProperty ( 'hits' , expect . any ( Array ) )
318318 expect ( response . hits . length ) . toEqual ( 1 )
319319 } )
@@ -326,9 +326,9 @@ describe.each([
326326 facetFilters : [ 'genre:romance' , [ 'genre:romance' , 'genre:romance' ] ] ,
327327 facetsDistribution : [ 'genre' ] ,
328328 } )
329- . then ( ( response : Types . SearchResponse ) => {
329+ . then ( ( response ) => {
330330 expect ( response ) . toHaveProperty ( 'facetsDistribution' , {
331- genre : { adventure : 0 , fantasy : 0 , romance : 2 , " sci fi" : 0 , } ,
331+ genre : { adventure : 0 , fantasy : 0 , romance : 2 , ' sci fi' : 0 } ,
332332 } )
333333 expect ( response ) . toHaveProperty ( 'exhaustiveFacetsCount' , true )
334334 expect ( response ) . toHaveProperty ( 'hits' , expect . any ( Array ) )
@@ -340,7 +340,7 @@ describe.each([
340340 await client
341341 . getIndex ( emptyIndex . uid )
342342 . search ( 'prince' )
343- . then ( ( response : Types . SearchResponse ) => {
343+ . then ( ( response ) => {
344344 expect ( response ) . toHaveProperty ( 'hits' , [ ] )
345345 expect ( response ) . toHaveProperty ( 'offset' , 0 )
346346 expect ( response ) . toHaveProperty ( 'limit' , 20 )
0 commit comments