import React from 'react' import renderer from 'react-test-renderer' import { TextField } from '../../../textField' import { TextFieldsSection } from './index' describe('TextFieldsSection', () => { it('should render default textField section', () => { const section = ( null} /> null} /> ) const renderedSection = renderer.create(section).toJSON() expect(renderedSection).toMatchSnapshot() }) it('should render non-default textField section', () => { const props = { tagName: 'span', className: 'content', } const section = ( null} /> null} /> null} /> ) const renderedSection = renderer.create(section).toJSON() expect(renderedSection).toMatchSnapshot() }) })