Skip to content

Commit

Permalink
Update test in accordance to useLocation
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho committed Sep 27, 2023
1 parent 680763b commit 4d19eb4
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ import { ManageDataConnectionsTable } from '../manage/manage_data_connections_ta
import { showDataConnectionsData } from '../../../../../test/datasources';
import ReactDOM from 'react-dom';

jest.mock('react-router-dom', () => ({
...jest.requireActual('react-router-dom'),
useLocation: () => ({
pathname: '/manage',
}),
}));

describe('Manage Data Connections Table test', () => {
configure({ adapter: new Adapter() });

Expand Down

0 comments on commit 4d19eb4

Please sign in to comment.