Skip to content

Commit

Permalink
Add onError to query options in test
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanwulf committed Aug 22, 2019
1 parent 91428d4 commit f01d714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hooks/src/__tests__/useQuery.test.tsx
Expand Up @@ -341,7 +341,7 @@ describe('useQuery Hook', () => {
let renderCount = 0;
function App() {
const [_, forceUpdate] = useReducer(x => x + 1, 0);
const { loading, error } = useQuery(query);
const { loading, error } = useQuery(query, { onError: () => {} });

switch (renderCount) {
case 0:
Expand Down

0 comments on commit f01d714

Please sign in to comment.