diff --git a/packages/headless/src/controllers/commerce/core/facets/generator/headless-commerce-facet-generator.ssr.test.ts b/packages/headless/src/controllers/commerce/core/facets/generator/headless-commerce-facet-generator.ssr.test.ts index 33eb2508391..8670d887c08 100644 --- a/packages/headless/src/controllers/commerce/core/facets/generator/headless-commerce-facet-generator.ssr.test.ts +++ b/packages/headless/src/controllers/commerce/core/facets/generator/headless-commerce-facet-generator.ssr.test.ts @@ -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] = diff --git a/packages/headless/src/controllers/commerce/core/facets/location/headless-commerce-location-facet.test.ts b/packages/headless/src/controllers/commerce/core/facets/location/headless-commerce-location-facet.test.ts index 1800eef18ae..9878ce4fca7 100644 --- a/packages/headless/src/controllers/commerce/core/facets/location/headless-commerce-location-facet.test.ts +++ b/packages/headless/src/controllers/commerce/core/facets/location/headless-commerce-location-facet.test.ts @@ -13,7 +13,6 @@ import { MockedCommerceEngine, buildMockCommerceEngine, } from '../../../../../test/mock-engine-v2.js'; -import {buildMockFacetSearch} from '../../../../../test/mock-facet-search.js'; import { LocationFacet, LocationFacetOptions, @@ -47,7 +46,6 @@ describe('LocationFacet', () => { state.productListing.facets = [ buildMockCommerceLocationFacetResponse({facetId}), ]; - state.facetSearchSet[facetId] = buildMockFacetSearch(); facetResponseSelector.mockReturnValue( buildMockCommerceLocationFacetResponse({facetId}) ); @@ -61,7 +59,6 @@ describe('LocationFacet', () => { fetchProductsActionCreator: vi.fn(), facetResponseSelector, isFacetLoadingResponseSelector: vi.fn(), - facetSearch: {type: 'SEARCH'}, }; state = buildMockCommerceState(); diff --git a/packages/headless/src/controllers/commerce/core/facets/location/headless-commerce-location-facet.ts b/packages/headless/src/controllers/commerce/core/facets/location/headless-commerce-location-facet.ts index 66e65520dd4..05d6a2e99e0 100644 --- a/packages/headless/src/controllers/commerce/core/facets/location/headless-commerce-location-facet.ts +++ b/packages/headless/src/controllers/commerce/core/facets/location/headless-commerce-location-facet.ts @@ -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,