From 922f1f802002e60203437b66d5ac23de2220745c Mon Sep 17 00:00:00 2001 From: Jonas Faber Date: Tue, 6 Jun 2017 21:15:36 +0200 Subject: [PATCH] Skip-Test now no longer expects option.client to be not accesed. --- test/react-web/client/graphql/queries/skip.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/react-web/client/graphql/queries/skip.test.tsx b/test/react-web/client/graphql/queries/skip.test.tsx index 1e38cfd1df..5bb7b76162 100644 --- a/test/react-web/client/graphql/queries/skip.test.tsx +++ b/test/react-web/client/graphql/queries/skip.test.tsx @@ -123,7 +123,7 @@ describe('[queries] skip', () => { renderer.create(); }); - 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 } }); @@ -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 {