Skip to content

Commit

Permalink
PWA-589: Page Reset on Sort
Browse files Browse the repository at this point in the history
  • Loading branch information
eug123 committed Jun 11, 2020
1 parent 459ff6d commit 68dc985
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jest.mock('@apollo/react-hooks', () => {
};
const useLazyQuery = jest.fn(() => [runQuery, queryResult]);

return { runQuery, queryResult, useLazyQuery, useQuery };
return { useLazyQuery, useQuery };
});

const mockProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const mockUseSort = jest
])
.mockName('mockUseSort');


const mockSetCurrentPage = jest.fn().mockName('mockSetCurrentPage');

jest.mock('@magento/peregrine', () => {
Expand Down Expand Up @@ -75,7 +76,7 @@ jest.mock('@apollo/react-hooks', () => {
};
const useLazyQuery = jest.fn(() => [runQuery, queryResult]);

return { runQuery, queryResult, useLazyQuery, useQuery };
return { useLazyQuery, useQuery };
});

const categoryProps = {
Expand Down

0 comments on commit 68dc985

Please # to comment.