Skip to content

Commit

Permalink
Merge pull request facebook#5730 from spicyj/input-type-value
Browse files Browse the repository at this point in the history
Add another test for facebook#5729
  • Loading branch information
sophiebits committed Dec 24, 2015
2 parents 5043b89 + 432578e commit edf1952
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -442,4 +442,11 @@ describe('ReactDOMInput', function() {
'set value',
]);
});

it('sets value properly with type coming later in props', function() {
var input = ReactTestUtils.renderIntoDocument(
<input value="hi" type="radio" />
);
expect(input.value).toBe('hi');
});
});

0 comments on commit edf1952

Please sign in to comment.