Skip to content

Commit

Permalink
feat(hitsPerPage): support new routing system (#4038)
Browse files Browse the repository at this point in the history
* feat(hitsPerPage): support new routing system

* feat(hitsPerPage): enforce default value (#4069)

BREAKING CHANGE
  • Loading branch information
francoischalifour authored and Haroenv committed Oct 23, 2019
1 parent 6a9d99f commit 02502cb
Show file tree
Hide file tree
Showing 6 changed files with 161 additions and 190 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ Array [
"value": 10,
},
Object {
"default": true,
"isRefined": true,
"label": "",
"label": "7 items per page",
"value": 7,
},
]
Expand All @@ -33,31 +34,10 @@ Array [
"value": 10,
},
Object {
"default": true,
"isRefined": false,
"label": "",
"label": "7 items per page",
"value": 7,
},
]
`;

exports[`connectHitsPerPage routing getWidgetSearchParameters should add the refinements according to the UI state provided 1`] = `
SearchParameters {
"disjunctiveFacets": Array [],
"disjunctiveFacetsRefinements": Object {},
"facets": Array [],
"facetsExcludes": Object {},
"facetsRefinements": Object {},
"hierarchicalFacets": Array [],
"hierarchicalFacetsRefinements": Object {},
"hitsPerPage": 10,
"index": "",
"numericRefinements": Object {},
"tagRefinements": Array [],
}
`;

exports[`connectHitsPerPage routing getWidgetState should add an entry equal to the refinement 1`] = `
Object {
"hitsPerPage": 10,
}
`;
Loading

0 comments on commit 02502cb

Please sign in to comment.