eduardomoroni/mtgx

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

Summary

Maintainability
A
0 mins
Test Coverage
// @flow

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

const props = {
  input: {
    name: 'label',
    onChange: jest.fn(),
    value: true
  }
}

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

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