eduardomoroni/mtgx

View on GitHub
__tests__/unit/src/modules/cardSearch/components/cardDetailsScreen.test.js

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react'
import { shallow } from 'enzyme'
import { CardDetailsScreen } from '../../../../../../src/modules/cardSearch/components/cardDetailsScreen'
import { realmObjectFixture } from '../../../../../assets/fixtures/realmObjectFixture'

const props = {
  card: realmObjectFixture,
  navigator: {}
}

describe('<CardDetailsScreen />', () => {
  const wrapper = shallow(<CardDetailsScreen {...props} />)

  it('should have a snapshot', () => {
    expect(wrapper).toMatchSnapshot()
  })
})