Skip to content

Commit

Permalink
PWA-3363::Layered-nav-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
glo82145 committed Jan 9, 2025
1 parent a52f259 commit ae2410c
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ describe('useCategoryContent tests', () => {
mockProductFiltersByCategoryData
])
.mockReturnValueOnce([mockGetSortMethods, mockSortData]);
const rendered = createTestInstance(<Component {...mockProps} />);

const talonProps = rendered.root.findByType('i').props;

expect(mockGetFilters).toHaveBeenCalled();
expect(mockGetSortMethods).toHaveBeenCalled();
expect(useQuery).toHaveBeenCalled();
expect(useLazyQuery).toHaveBeenCalled();
expect(talonProps).toMatchSnapshot();
const testProps = Object.assign({}, mockProps, {
categoryId: 0
});
const rendered = createTestInstance(<Component {...testProps} />);
const talonProps = rendered.root.findByType('i').props;

expect(useQuery).toHaveBeenCalled();
expect(useLazyQuery).toHaveBeenCalled();
expect(talonProps).toMatchSnapshot();
});

it('handles default category id', () => {
Expand Down

0 comments on commit ae2410c

Please sign in to comment.