text: /* globals describe it expect */
  /* eslint-disable flowtype/require-valid-file-annotation */
  
  import * as React from 'react'
  import ShallowRenderer from 'react-test-renderer/shallow'
  
  import { CryptoExchangeSuccessComponent } from '../../components/scenes/CryptoExchangeSuccessScene.js'
  import { getTheme } from '../../components/services/ThemeContext.js'
  import { fakeNavigation } from '../../util/fake/fakeNavigation.js'
  
  describe('CryptoExchangeSuccessComponent', () => {
    it('should render with loading props', () => {
      const renderer = new ShallowRenderer()
  
      const props = {
        navigation: fakeNavigation,
        userId: '',
        disklet: {
          state: {
            core: {
              disklet: () => undefined
            }
          }
        },
        showButton: true,
        showConfetti: true,
        theme: getTheme()
      }
  
      const actual = renderer.render(<CryptoExchangeSuccessComponent {...props} />)
  
      expect(actual).toMatchSnapshot()
    })
  })
  