components.widgets.Form.fields.ButtonField.ButtonField.test.js Maven / Gradle / Ivy
The newest version!
import React from 'react'
import { Provider } from 'react-redux'
import mockStore from 'redux-mock-store'
import ButtonField from './ButtonField'
const setup = () => {
const props = {
label: 'Поле "ButtonField"',
}
return mount(
,
)
}
describe(' ', () => {
it('компонент отрисовывается', () => {
const wrapper = setup()
expect(wrapper.find('.n2o-button-field').exists()).toBeTruthy()
})
})