Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Update test to apollo-client 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
glasser committed Nov 9, 2017
1 parent 898e10f commit 1ca304b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/react-web/client/graphql/queries/skip.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,15 @@ describe('[queries] skip', () => {
}
`;

const networkInterface = mockNetworkInterface();
const link = mockSingleLink({
request: { query },
result: {},
});

const client = new ApolloClient({ networkInterface, addTypename: false });
const client = new ApolloClient({
link,
cache: new Cache({ addTypename: false }),
});

let queryWasSkipped = true;

Expand Down

0 comments on commit 1ca304b

Please sign in to comment.