Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove duplicate test
  • Loading branch information
jackdclark committed Feb 19, 2019
commit 32663afad138e3a25aa034c3b50a9a30c9b2c46a
6 changes: 0 additions & 6 deletions test/unit/useQuery.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@ describe('useQuery', () => {
expect(mockQueryReq).not.toHaveBeenCalled();
});

it('does not send the query on mount if there is already data', () => {
mockState.error = true;
testHook(() => useQuery(TEST_QUERY), { wrapper: Wrapper });
expect(mockQueryReq).not.toHaveBeenCalled();
});

it('does not send the query on mount if there is an error', () => {
mockState.error = true;
testHook(() => useQuery(TEST_QUERY), { wrapper: Wrapper });
Expand Down