withApollo.spec.js 475 B

12345678910111213141516
  1. import withApollo from '../../lib/withApollo'
  2. const App = props => <div>I have nothing to say.</div>
  3. describe('withApollo module', () => {
  4. it('is a function', () => {
  5. expect(withApollo).toBeInstanceOf(Function)
  6. })
  7. xit('decorates a component', () => {
  8. const DecoratedApp = withApollo(App)
  9. const MyApp = <DecoratedApp />
  10. expect(MyApp).toHaveProperty('props')
  11. expect(MyApp).toHaveProperty('_owner')
  12. expect(MyApp).toHaveProperty('_store')
  13. })
  14. })