All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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)
    })
})




© 2015 - 2024 Weber Informatics LLC | Privacy Policy