From ac5afa814346908ba31b83cc0dd1b149a41ccd35 Mon Sep 17 00:00:00 2001 From: ArtemHolikov Date: Thu, 5 Dec 2024 12:54:06 +0200 Subject: [PATCH] changed bug of unsaved changing if leave without changes --- tests/unit/pages/edit-profile/EditProfile.spec.jsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/unit/pages/edit-profile/EditProfile.spec.jsx b/tests/unit/pages/edit-profile/EditProfile.spec.jsx index b777fcb5c..430620d62 100644 --- a/tests/unit/pages/edit-profile/EditProfile.spec.jsx +++ b/tests/unit/pages/edit-profile/EditProfile.spec.jsx @@ -71,6 +71,7 @@ const userMock = { } } +<<<<<<< HEAD const mockData = { firstName: '', lastName: '', @@ -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 })