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

components.widgets.Form.fields.StandardField.tests.Label.test.js Maven / Gradle / Ivy

The newest version!
import React from 'react'

import Label from '../Label'

const setup = propsOverride => shallow(
}) expect(wrapper.find('.col-form-label').exists()).toEqual(true) }) it('required = true', () => { const wrapper = setup({ required: true, value: 'test' }) expect(wrapper.find('Required').exists()).toEqual(true) }) it('help = true', () => { const wrapper = setup({ help: 'help', id: 'test', value: 'test' }) expect(wrapper.find('HelpPopover').exists()).toEqual(true) }) })




© 2015 - 2024 Weber Informatics LLC | Privacy Policy