components.widgets.Form.fields.StandardField.tests.Control.test.js Maven / Gradle / Ivy
The newest version!
import React from 'react'
import Control from '../Control'
const setup = propsOverride => shallow( )
describe('Проверка Control', () => {
it('component === string', () => {
const wrapper = setup({ component: 'string' })
expect(wrapper.find('Factory').exists()).toEqual(true)
})
it('component !== string', () => {
const wrapper = setup()
expect(wrapper.find('Factory').exists()).toEqual(false)
})
})