Skip to content

Commit

Permalink
Switch to Jest for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuykendall committed Jun 22, 2019
1 parent ddbeb9d commit 4d1b540
Show file tree
Hide file tree
Showing 43 changed files with 4,607 additions and 3,421 deletions.
14 changes: 11 additions & 3 deletions tests/utils/TestInput.js → __test_utils__/TestInput.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
import React from 'react';
import Formsy, { withFormsy } from './../..';
import Formsy, { withFormsy } from '../lib';

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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import Formsy, { withFormsy } from './../..';
import Formsy, { withFormsy } from '../lib';

class TestComponent extends React.Component {
methodOnWrappedInstance = param => {
Expand Down
File renamed without changes.
Loading

0 comments on commit 4d1b540

Please sign in to comment.