Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fpbrault committed Jul 10, 2024
1 parent 6125a0e commit fe41a85
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -174,7 +176,7 @@ describe('FacetGenerator', () => {
describe('#deselectAll', () => {
it('dispatches #clearAllCoreFacets', () => {
facetGenerator.deselectAll();
expect(clearAllCoreFacets).toHaveBeenCalledTimes(1);
expect(clearAllCoreFacets).toHaveBeenCalled();
});

it('dispatches #fetchProductsActionCreator', () => {
Expand Down

0 comments on commit fe41a85

Please sign in to comment.