Skip to content

Commit

Permalink
Update next-urql test
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Mar 25, 2020
1 parent de9750e commit 7dce9f5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/next-urql/src/__tests__/with-urql-client.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { shallow, configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import { Client, defaultExchanges, composeExchanges } from 'urql';
import { Client, defaultExchanges } from 'urql';

import { withUrqlClient, NextUrqlPageContext } from '..';
import * as init from '../init-urql-client';
Expand Down Expand Up @@ -122,9 +122,6 @@ describe('withUrqlClient', () => {
const app = tree.find(MockApp);

expect(app.props().urqlClient).toBeInstanceOf(Client);
expect(app.props().urqlClient.exchange.toString()).toEqual(
composeExchanges(defaultExchanges).toString()
);
expect(mockMergeExchanges).toHaveBeenCalledTimes(1);
});
});
Expand Down

0 comments on commit 7dce9f5

Please sign in to comment.