diff --git a/src/connectors/hierarchical-menu/__tests__/connectHierarchicalMenu-test.ts b/src/connectors/hierarchical-menu/__tests__/connectHierarchicalMenu-test.ts index 6b0a1cc72d..59cc466947 100644 --- a/src/connectors/hierarchical-menu/__tests__/connectHierarchicalMenu-test.ts +++ b/src/connectors/hierarchical-menu/__tests__/connectHierarchicalMenu-test.ts @@ -765,14 +765,14 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hierarchica ]; test.each` - ordered | sortBy | expected - ${true} | ${undefined} | ${resultsViaFacetOrdering} - ${false} | ${undefined} | ${resultsViaSortBy} - ${true} | ${['name:asc']} | ${resultsViaSortBy} - ${false} | ${['name:asc']} | ${resultsViaSortBy} + facetOrderingInResult | sortBy | expected + ${true} | ${undefined} | ${resultsViaFacetOrdering} + ${false} | ${undefined} | ${resultsViaSortBy} + ${true} | ${['name:asc']} | ${resultsViaSortBy} + ${false} | ${['name:asc']} | ${resultsViaSortBy} `( - 'renderingContent present: $ordered, sortBy: $sortBy', - ({ ordered, sortBy, expected }) => { + 'renderingContent present: $facetOrderingInResult, sortBy: $sortBy', + ({ facetOrderingInResult, sortBy, expected }) => { const renderFn = jest.fn(); const unmountFn = jest.fn(); const createHierarchicalMenu = connectHierarchicalMenu( @@ -800,7 +800,7 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/hierarchica hierarchicalMenu.init!(createInitOptions({ helper })); - const renderingContent = ordered + const renderingContent = facetOrderingInResult ? { facetOrdering: { values: { diff --git a/src/connectors/menu/__tests__/connectMenu-test.ts b/src/connectors/menu/__tests__/connectMenu-test.ts index c37faa8c3d..e4a2535c03 100644 --- a/src/connectors/menu/__tests__/connectMenu-test.ts +++ b/src/connectors/menu/__tests__/connectMenu-test.ts @@ -704,14 +704,14 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/menu/js/#co ]; test.each` - ordered | sortBy | expected - ${true} | ${undefined} | ${resultsViaFacetOrdering} - ${false} | ${undefined} | ${resultsViaSortBy} - ${true} | ${['name:asc']} | ${resultsViaSortBy} - ${false} | ${['name:asc']} | ${resultsViaSortBy} + facetOrderingInResult | sortBy | expected + ${true} | ${undefined} | ${resultsViaFacetOrdering} + ${false} | ${undefined} | ${resultsViaSortBy} + ${true} | ${['name:asc']} | ${resultsViaSortBy} + ${false} | ${['name:asc']} | ${resultsViaSortBy} `( - 'renderingContent present: $ordered, sortBy: $sortBy', - ({ ordered, sortBy, expected }) => { + 'renderingContent present: $facetOrderingInResult, sortBy: $sortBy', + ({ facetOrderingInResult, sortBy, expected }) => { const renderFn = jest.fn(); const unmountFn = jest.fn(); const createMenu = connectMenu(renderFn, unmountFn); @@ -727,7 +727,7 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/menu/js/#co }) ); - const renderingContent = ordered + const renderingContent = facetOrderingInResult ? { facetOrdering: { values: { diff --git a/src/connectors/refinement-list/__tests__/connectRefinementList-test.ts b/src/connectors/refinement-list/__tests__/connectRefinementList-test.ts index 76474fe80e..e14c8ab88b 100644 --- a/src/connectors/refinement-list/__tests__/connectRefinementList-test.ts +++ b/src/connectors/refinement-list/__tests__/connectRefinementList-test.ts @@ -2639,14 +2639,14 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/refinement- ]; test.each` - ordered | sortBy | expected - ${true} | ${undefined} | ${resultsViaFacetOrdering} - ${false} | ${undefined} | ${resultsViaSortBy} - ${true} | ${['isRefined']} | ${resultsViaSortBy} - ${false} | ${['isRefined']} | ${resultsViaSortBy} + facetOrderingInResult | sortBy | expected + ${true} | ${undefined} | ${resultsViaFacetOrdering} + ${false} | ${undefined} | ${resultsViaSortBy} + ${true} | ${['isRefined']} | ${resultsViaSortBy} + ${false} | ${['isRefined']} | ${resultsViaSortBy} `( - 'renderingContent present: $ordered, sortBy: $sortBy', - ({ ordered, sortBy, expected }) => { + 'renderingContent present: $facetOrderingInResult, sortBy: $sortBy', + ({ facetOrderingInResult, sortBy, expected }) => { const renderFn = jest.fn(); const unmountFn = jest.fn(); const createRefinementList = connectRefinementList( @@ -2667,7 +2667,7 @@ See documentation: https://www.algolia.com/doc/api-reference/widgets/refinement- }) ); - const renderingContent = ordered + const renderingContent = facetOrderingInResult ? { facetOrdering: { values: {