Skip to content

Commit

Permalink
mock useReceivingHistory to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro-Melnyshyn committed Jun 18, 2024
1 parent 42166cd commit 288571b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ViewHoldingsRecord.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ import {

import ViewHoldingsRecord from './ViewHoldingsRecord';

jest.mock('./Holding/ViewHolding/HoldingReceivingHistory/useReceivingHistory', () => jest.fn(() => ({
isFetching: false,
receivingHistory: [],
})));

const mockPush = jest.fn();

const history = createMemoryHistory();
Expand Down

0 comments on commit 288571b

Please sign in to comment.