Skip to content

Commit

Permalink
Clean up tests and remove unnecesary dev libraries (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuykendall authored Jun 23, 2019
1 parent d1131b9 commit f35d717
Show file tree
Hide file tree
Showing 20 changed files with 263 additions and 897 deletions.
12 changes: 2 additions & 10 deletions __test_utils__/TestInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,11 @@ class TestInput extends React.Component {
static defaultProps = { type: 'text' };

updateValue = event => {
this.props.setValue(
event.target[this.props.type === 'checkbox' ? 'checked' : 'value'],
);
this.props.setValue(event.target[this.props.type === 'checkbox' ? 'checked' : 'value']);
};

render() {
return (
<input
type={this.props.type}
value={this.props.value}
onChange={this.updateValue}
/>
);
return <input type={this.props.type} value={this.props.value} onChange={this.updateValue} />;
}
}

Expand Down
Loading

0 comments on commit f35d717

Please sign in to comment.