File tree Expand file tree Collapse file tree 1 file changed +1
-35
lines changed
packages/algoliasearch-helper/test/spec/utils Expand file tree Collapse file tree 1 file changed +1
-35
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ var response = {
7979
8080test ( 'sorts the items based on their average index thus preserving applied rules' , ( ) => {
8181 const result = sortAndMergeRecommendations (
82- [ ] ,
82+ [ 'X' , 'Y' , 'Z' ] ,
8383 response . results . map ( function ( res ) {
8484 return res . hits ;
8585 } )
@@ -125,37 +125,3 @@ test('sorts the items based on their average index thus preserving applied rules
125125 ]
126126 ` ) ;
127127} ) ;
128-
129- test ( 'filters out input objectIDs' , ( ) => {
130- const result = sortAndMergeRecommendations (
131- [ 'A' , 'B' , 'C' ] ,
132- response . results . map ( function ( res ) {
133- return res . hits ;
134- } )
135- ) ;
136-
137- expect ( result ) . toMatchInlineSnapshot ( `
138- Array [
139- Object {
140- "_score": 76,
141- "name": "Product E",
142- "objectID": "E",
143- },
144- Object {
145- "_score": 100,
146- "name": "Product F",
147- "objectID": "F",
148- },
149- Object {
150- "_score": 96,
151- "name": "Product G",
152- "objectID": "G",
153- },
154- Object {
155- "_score": 89,
156- "name": "Product D",
157- "objectID": "D",
158- },
159- ]
160- ` ) ;
161- } ) ;
You can’t perform that action at this time.
0 commit comments