Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Sep 29, 2019
1 parent eaf14b4 commit e2c211a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ra-core/src/dataProvider/useMutation.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ describe('useMutation', () => {
>
{mutate => (
<button
onClick={e => mutate(e, { bar: 2 }, { baz: 1 })}
onClick={e =>
mutate({ payload: { bar: 2 } }, { baz: 1 })
}
>
Hello
</button>
Expand Down

0 comments on commit e2c211a

Please sign in to comment.