From fe41a859be127dea3b26b02abcb20692821ad4fd Mon Sep 17 00:00:00 2001 From: Felix Perron-Brault Date: Wed, 10 Jul 2024 10:22:31 -0400 Subject: [PATCH] fix tests https://coveord.atlassian.net/browse/KIT-3358 --- .../generator/headless-commerce-facet-generator.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/headless/src/controllers/commerce/core/facets/generator/headless-commerce-facet-generator.test.ts b/packages/headless/src/controllers/commerce/core/facets/generator/headless-commerce-facet-generator.test.ts index 6153183fb8e..a5bfd28fd4c 100644 --- a/packages/headless/src/controllers/commerce/core/facets/generator/headless-commerce-facet-generator.test.ts +++ b/packages/headless/src/controllers/commerce/core/facets/generator/headless-commerce-facet-generator.test.ts @@ -17,7 +17,9 @@ import { FacetGeneratorOptions, } from './headless-commerce-facet-generator'; -jest.mock('../../../../../features/breadcrumb/breadcrumb-actions'); +jest.mock( + '../../../../../features/commerce/facets/core-facet/core-facet-actions' +); describe('FacetGenerator', () => { let engine: MockedCommerceEngine; @@ -174,7 +176,7 @@ describe('FacetGenerator', () => { describe('#deselectAll', () => { it('dispatches #clearAllCoreFacets', () => { facetGenerator.deselectAll(); - expect(clearAllCoreFacets).toHaveBeenCalledTimes(1); + expect(clearAllCoreFacets).toHaveBeenCalled(); }); it('dispatches #fetchProductsActionCreator', () => {