import React from 'react';
import { mount } from 'enzyme';
import { Radio } from '../../../src';

describe('<Radio>', () => {
  const warpperState = {
    value: 0,
  };
  const wrapper = mount(<Radio
    onChange={(e, value) => {
      warpperState.value = value;
    }}
  >label
                        </Radio>);
  it('Test the default props and node.', () => {
    expect(wrapper.name()).toBe('Radio');
    expect(wrapper.type()).toEqual(Radio);
    expect(wrapper.at(0).prop('prefixCls')).toBe('w-radio');
    expect(wrapper.at(0).prop('disabled')).toBe(false);
    expect(wrapper.at(0).prop('checked')).toBe(false);
    expect(wrapper.at(0).prop('value')).toBe('');
  });

  it('Test value and checked and disabled attributes.', () => {
    wrapper.setProps({ value: '1212', checked: true, disabled: true });
    expect(wrapper.find('input').at(0).getDOMNode().checked).toBe(true);
    expect(wrapper.find('input').at(0).getDOMNode().disabled).toEqual(true);
    expect(wrapper.find('input').at(0).getDOMNode().value).toBe('1212');
  });
});

@@ -191,15 +191,22 @@
 unt(
+%0A    
 %3CRadio%0A
+  
     
@@ -227,24 +227,26 @@
 value) =%3E %7B%0A
+  
       warppe
@@ -275,11 +275,15 @@
     
+  
 %7D%7D%0A
+  
   %3El
@@ -287,36 +287,16 @@
  %3Elabel%0A
-                    
     %3C/Ra

Format lintjs coding style