Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade tech stack #9

Merged
merged 14 commits into from
Dec 28, 2021
Prev Previous commit
Next Next commit
fix: fix test for hooks
  • Loading branch information
EKarton committed Dec 28, 2021
commit 85b69877fffbf47552e77cea8df3982315f77f10
10 changes: 5 additions & 5 deletions src/hooks/utils/__tests__/useRemotePathParams.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { renderHook } from '@testing-library/react-hooks';
import { createMemoryHistory } from 'history';
import { Router, Route, Switch } from 'react-router';
import { Router, Routes, Route } from 'react-router';
import { hashRemotePath } from 'utils/remote-paths-url';
import useRemotePathParams from '../useRemotePathParams';

Expand Down Expand Up @@ -28,10 +28,10 @@ describe('useRemotePathParams()', () => {
const history = createMemoryHistory({ initialEntries: [route] });

return (
<Router history={history}>
<Switch>
<Route path="/files/:id">{children}</Route>
</Switch>
<Router location={history.location} navigator={history}>
<Routes>
<Route path="/files/:id" element={children} />
</Routes>
</Router>
);
};
Expand Down