Repository URL to install this package:
|
Version:
8.1.0-rc.1 ▾
|
import React from 'react';
import { mount } from 'enzyme';
import Textarea from '../Textarea';
describe('Textarea', () => {
it('does not lose the value when in focus', () => {
const value = 'some value';
const component = mount(<Textarea value={value} />);
component.find('textarea').simulate('focus');
expect(component.prop('value')).toBe(value);
});
});