Skip to content

Commit

Permalink
Remove initial value tests in ReactDOMInput
Browse files Browse the repository at this point in the history
I added these tests after removing the `value` mutation
method. However they do not add any additional value over existing
tests.
  • Loading branch information
nhunzaker committed Nov 27, 2017
1 parent 11ee36f commit fde83b2
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions packages/react-dom/src/__tests__/ReactDOMInput-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1376,36 +1376,6 @@ describe('ReactDOMInput', () => {
expect(node.getAttribute('value')).toBe('2');
});

it('initially sets the value attribute on mount', () => {
var Input = getTestInput();
var stub = ReactTestUtils.renderIntoDocument(
<Input type="number" value="1" />,
);
var node = ReactDOM.findDOMNode(stub);

expect(node.getAttribute('value')).toBe('1');
});

it('initially sets the value attribute for submit on mount', () => {
var Input = getTestInput();
var stub = ReactTestUtils.renderIntoDocument(
<Input type="submit" value="1" />,
);
var node = ReactDOM.findDOMNode(stub);

expect(node.getAttribute('value')).toBe('1');
});

it('initially sets the value attribute for reset on mount', () => {
var Input = getTestInput();
var stub = ReactTestUtils.renderIntoDocument(
<Input type="reset" value="1" />,
);
var node = ReactDOM.findDOMNode(stub);

expect(node.getAttribute('value')).toBe('1');
});

it('does not set the value attribute on number inputs if focused', () => {
var Input = getTestInput();
var stub = ReactTestUtils.renderIntoDocument(
Expand Down

0 comments on commit fde83b2

Please sign in to comment.