Skip to content

Commit

Permalink
fix warnings in ReactComponentLifeCycle test
Browse files Browse the repository at this point in the history
Don't use inputs to avoid warnings in tests
  • Loading branch information
kassens authored and zpao committed Apr 23, 2014
1 parent 01d41f6 commit 9e9d8db
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/core/__tests__/ReactComponentLifeCycle-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,15 +356,15 @@ describe('ReactComponentLifeCycle', function() {
var PropsUpdaterInOnDOMReady = React.createClass({
componentDidMount: function() {
this.refs.theSimpleComponent.setProps({
value: this.props.valueToUseInOnDOMReady
valueToUseInitially: this.props.valueToUseInOnDOMReady
});
},
render: function() {
return (
<input
value={this.props.valueToUseInitially}
ref="theSimpleComponent">
</input>
<div
className={this.props.valueToUseInitially}
ref="theSimpleComponent"
/>
);
}
});
Expand Down Expand Up @@ -429,12 +429,7 @@ describe('ReactComponentLifeCycle', function() {
function() {
var PropsToUpdate = React.createClass({
render: function() {
return (
<input
value={this.props.value}
ref="theSimpleComponent">
</input>
);
return <div className={this.props.value} ref="theSimpleComponent" />;
}
});
var instance = <PropsToUpdate value="hello" />;
Expand Down

0 comments on commit 9e9d8db

Please sign in to comment.