Added Input errors support. Merged LabeledInput into Input

This commit is contained in:
SleepWalker
2016-05-02 08:51:47 +03:00
parent 256d2322c6
commit d19e7e5c4f
5 changed files with 67 additions and 76 deletions

View File

@@ -5,10 +5,10 @@ import { shallow } from 'enzyme';
import ChangePassword from 'components/profile/changePassword/ChangePassword';
describe('<ChangePassword />', () => {
it('renders two <LabeledInput /> components', () => {
it('renders two <Input /> components', () => {
const component = shallow(<ChangePassword onSubmit={() => {}} />);
expect(component.find('LabeledInput')).to.have.length(2);
expect(component.find('Input')).to.have.length(2);
});