Skip to content

Commit

Permalink
Fix warnings in simpleformiterator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed May 17, 2021
1 parent 440e0b1 commit 3190841
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ describe('<SimpleFormIterator />', () => {
});

it('should call the onClick method when the custom add button is clicked', async () => {
const onClick = jest.fn();
const onClick = jest.fn().mockImplementation(e => e.preventDefault());
const { getByText } = renderWithRedux(
<ThemeProvider theme={theme}>
<SaveContextProvider value={saveContextValue}>
Expand All @@ -527,7 +527,7 @@ describe('<SimpleFormIterator />', () => {
});

it('should call the onClick method when the custom remove button is clicked', async () => {
const onClick = jest.fn();
const onClick = jest.fn().mockImplementation(e => e.preventDefault());
const { getByText } = renderWithRedux(
<ThemeProvider theme={theme}>
<SaveContextProvider value={saveContextValue}>
Expand Down

0 comments on commit 3190841

Please sign in to comment.