Skip to content

Commit

Permalink
Update exhaustive facet count tests (#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
bidoubiwa authored Jul 7, 2021
1 parent 675daf7 commit 7e34884
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/search_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ describe.each([
expect(response).toHaveProperty('facetsDistribution', {
genre: { romance: 2 },
})
expect(response).toHaveProperty('exhaustiveFacetsCount', true)
expect(response).toHaveProperty('exhaustiveFacetsCount', false)
expect(response).toHaveProperty('exhaustiveNbHits', false)
expect(response).toHaveProperty('hits', expect.any(Array))
expect(response.hits.length).toEqual(2)
Expand Down
6 changes: 3 additions & 3 deletions tests/typed_search_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ describe.each([
expect(
response.facetsDistribution?.genre['sci fi'] === 0
).toBeTruthy()
expect(response.exhaustiveFacetsCount === true).toBeTruthy()
expect(response.exhaustiveFacetsCount === false).toBeTruthy()
expect(response.hits.length === 2).toBeTruthy()
})
})
Expand Down Expand Up @@ -397,7 +397,7 @@ describe.each([
)
.then((response) => {
expect(response.facetsDistribution?.genre?.fantasy === 2).toBeTruthy()
expect(response.exhaustiveFacetsCount === true).toBeTruthy()
expect(response.exhaustiveFacetsCount === false).toBeTruthy()
expect(response.hits.length === 2).toBeTruthy()
})
})
Expand All @@ -415,7 +415,7 @@ describe.each([
)
.then((response) => {
expect(response.facetsDistribution?.genre?.fantasy === 2).toBeTruthy()
expect(response.exhaustiveFacetsCount === true).toBeTruthy()
expect(response.exhaustiveFacetsCount === false).toBeTruthy()
expect(response.hits.length === 2).toBeTruthy()
})
})
Expand Down

0 comments on commit 7e34884

Please sign in to comment.