Skip to content

Commit

Permalink
test(eslint): Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Dec 28, 2022
1 parent 638341f commit 1a5b9af
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/ColumnsBlock/ColumnsBlockView.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ const TextView = ({ data }) => {
return data.text;
};

jest.mock("react-router-dom", () => ({
...jest.requireActual("react-router-dom"),
jest.mock('react-router-dom', () => ({
...jest.requireActual('react-router-dom'),
useLocation: () => ({
pathname: "/",
hash: "",
search: "",
state: undefined
})
pathname: '/',
hash: '',
search: '',
state: undefined,
}),
}));

test('renders 2 columns', async () => {
Expand Down

0 comments on commit 1a5b9af

Please sign in to comment.