54 |
55 |
56 | {children}
57 |
58 |
59 | );
60 | }
61 | }
62 |
63 | export default defaultProps({
64 | classPrefix: 'error-message'
65 | })(ErrorMessage);
66 |
--------------------------------------------------------------------------------
/test/ControlLabelSpec.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { findDOMNode } from 'react-dom';
3 | import ReactTestUtils from 'react-dom/test-utils';
4 |
5 | import ControlLabel from '../src/ControlLabel';
6 | import FormGroup from '../src/FormGroup';
7 |
8 | describe('ControlLabel', () => {
9 | it('Should render a ControlLabel', () => {
10 | let title = 'Test';
11 | let instance = ReactTestUtils.renderIntoDocument(