Skip to content

Commit 0a8004e

Browse files
committed
revert adding test
1 parent dc66bf6 commit 0a8004e

File tree

1 file changed

+1
-35
lines changed

1 file changed

+1
-35
lines changed

packages/algoliasearch-helper/test/spec/utils/sortAndMergeRecommendations.js

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ var response = {
7979

8080
test('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-
});

0 commit comments

Comments
 (0)