12345678910111213141516 |
- import withApollo from '../../lib/withApollo'
- const App = props => <div>I have nothing to say.</div>
- describe('withApollo module', () => {
- it('is a function', () => {
- expect(withApollo).toBeInstanceOf(Function)
- })
- xit('decorates a component', () => {
- const DecoratedApp = withApollo(App)
- const MyApp = <DecoratedApp />
- expect(MyApp).toHaveProperty('props')
- expect(MyApp).toHaveProperty('_owner')
- expect(MyApp).toHaveProperty('_store')
- })
- })
|