Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vashjs committed Jan 10, 2025
1 parent 8a6c8e3 commit 46eafad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { ACTIONS } from '../../../constants/marcActions';

const mockConfirmChanges = jest.fn();
const mockMarcContentUpdate = jest.fn().mockReturnValue('marcContentUpdate');
const mockContentUpdate = jest.fn();
const mockContentUpdate = jest.fn().mockReturnValue('administrativeContentUpdate');

jest.mock('../../../hooks/useConfirmChanges', () => ({
useConfirmChanges: jest.fn(() => ({
Expand Down Expand Up @@ -332,7 +332,7 @@ describe('BulkEditMarcLayer', () => {
userEvent.click(confirmChangesBtn);

await waitFor(() => {
expect(mockConfirmChanges).toHaveBeenCalledWith(['marcContentUpdate']);
expect(mockConfirmChanges).toHaveBeenCalledWith(['administrativeContentUpdate', 'marcContentUpdate']);
});
});

Expand Down

0 comments on commit 46eafad

Please sign in to comment.