eduardomoroni/mtgx

View on GitHub
__tests__/unit/src/modules/form/components/textInputForm.test.js

Summary

Maintainability
A
0 mins
Test Coverage
// @flow

import React from 'react'
import { shallow } from 'enzyme'
import { TextInputForm } from '../../../../../../src/modules/form/components'

const props = {
  keyboardType: 'default',
  maxLength: 5,
  input: {
    name: 'label',
    onChange: jest.fn()
  }
}

describe('<TextInputForm />', () => {
  it('should have a snapshot', () => {
    const wrapper = shallow(<TextInputForm {...props} />)
    expect(wrapper).toMatchSnapshot()
  })
})