Skip to content

Commit

Permalink
remove leftover facet search pieces
Browse files Browse the repository at this point in the history
  • Loading branch information
Spuffynism authored and louis-bompart committed Oct 23, 2024
1 parent 8977552 commit 82fc779
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('SSR FacetGenerator', () => {
type: facet.type,
}),
};
if (type === 'regular' || type === 'location') {
if (type === 'regular') {
state.facetSearchSet[facet.facetId] = buildMockFacetSearch();
} else if (type === 'hierarchical') {
state.categoryFacetSearchSet[facet.facetId] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
MockedCommerceEngine,
buildMockCommerceEngine,
} from '../../../../../test/mock-engine-v2.js';
import {buildMockFacetSearch} from '../../../../../test/mock-facet-search.js';
import {
LocationFacet,
LocationFacetOptions,
Expand Down Expand Up @@ -47,7 +46,6 @@ describe('LocationFacet', () => {
state.productListing.facets = [
buildMockCommerceLocationFacetResponse({facetId}),
];
state.facetSearchSet[facetId] = buildMockFacetSearch();
facetResponseSelector.mockReturnValue(
buildMockCommerceLocationFacetResponse({facetId})
);
Expand All @@ -61,7 +59,6 @@ describe('LocationFacet', () => {
fetchProductsActionCreator: vi.fn(),
facetResponseSelector,
isFacetLoadingResponseSelector: vi.fn(),
facetSearch: {type: 'SEARCH'},
};

state = buildMockCommerceState();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ import {
FacetValueRequest,
buildCoreCommerceFacet,
} from '../headless-core-commerce-facet.js';
import {SearchableFacetOptions} from '../searchable/headless-commerce-searchable-facet.js';

export type LocationFacetOptions = Omit<
CoreCommerceFacetOptions,
'toggleSelectActionCreator' | 'toggleExcludeActionCreator'
> &
SearchableFacetOptions;
>;

export type LocationFacetState = Omit<
CoreCommerceFacetState<LocationFacetValue>,
Expand Down

0 comments on commit 82fc779

Please sign in to comment.