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

Commit

Permalink
Skip-Test now no longer expects option.client to be not accesed.
Browse files Browse the repository at this point in the history
  • Loading branch information
flexzuu committed Jun 19, 2017
1 parent 7f42498 commit 922f1f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/react-web/client/graphql/queries/skip.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ describe('[queries] skip', () => {
renderer.create(<ApolloProvider client={client}><Parent /></ApolloProvider>);
});

it('doesn\'t run options or props when skipped', (done) => {
it('doesn\'t run options or props when skipped, except option.client', (done) => {
const query = gql`query people { allPeople(first: 1) { people { name } } }`;
const data = { allPeople: { people: [ { name: 'Luke Skywalker' } ] } };
const networkInterface = mockNetworkInterface({ request: { query }, result: { data } });
Expand All @@ -132,7 +132,7 @@ describe('[queries] skip', () => {
let queryExecuted;
@graphql(query, {
skip: ({ skip }) => skip,
options: ({ willThrowIfAccesed }) => ({ pollInterval: willThrowIfAccesed.pollInterval }),
options: ({ client, ...willThrowIfAccesed }) => ({ pollInterval: willThrowIfAccesed.pollInterval }),
props: ({ willThrowIfAccesed }) => ({ pollInterval: willThrowIfAccesed.pollInterval }),
})
class Container extends React.Component<any, any> {
Expand Down

0 comments on commit 922f1f8

Please sign in to comment.