Skip to content

Commit

Permalink
changed bug of unsaved changing if leave without changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemHolikov committed Dec 5, 2024
1 parent 2bd241d commit ac5afa8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/unit/pages/edit-profile/EditProfile.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const userMock = {
}
}

<<<<<<< HEAD
const mockData = {
firstName: '',
lastName: '',
Expand All @@ -82,6 +83,15 @@ const mockData = {
videoLink: '',
},
};
=======
vi.mock('react-router-dom', async (importOriginal) => {
const actual = await importOriginal();
return {
...actual,
useBlocker: vi.fn(),
};
});
>>>>>>> 186c8d3c (changed bug of unsaved changing if leave without changes)

vi.mock('~/hooks/use-confirm', () => ({
default: () => ({ checkConfirmation: () => true })
Expand Down

0 comments on commit ac5afa8

Please sign in to comment.