Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@doodle/components / src / components / controls / Input / __tests__ / Textarea.spec.js
Size: Mime:
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);
  });
});