mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Updating code to use new version of react-router.
This commit is contained in:
parent
303810476e
commit
8ea3ea8a67
28 changed files with 34 additions and 52 deletions
|
|
@ -4,8 +4,8 @@ import userEvent from '@testing-library/user-event';
|
|||
import {DomainEditPage} from './Archive';
|
||||
|
||||
// Mock useParams to return domain ID
|
||||
jest.mock('react-router-dom', () => ({
|
||||
...jest.requireActual('react-router-dom'),
|
||||
jest.mock('react-router', () => ({
|
||||
...jest.requireActual('react-router'),
|
||||
useParams: () => ({domainId: '1'}),
|
||||
useNavigate: () => jest.fn(),
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue