Skip to content

Commit

Permalink
removed method validateValue
Browse files Browse the repository at this point in the history
  • Loading branch information
nmbrone committed Aug 12, 2017
1 parent 2dbef34 commit 8790039
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/Refova.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ export default function Refova(
setValue={this.setValue}
setValues={this.setValues}
resetError={this.resetError}
validateValue={this.validate}
validate={this.validate}
reset={this.reset}
/>
Expand Down
2 changes: 1 addition & 1 deletion test/Refova.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ describe('<Refova />', () => {
expect(wrapper.prop('errors')).toHaveProperty('email');
expect(wrapper.prop('errors')).toHaveProperty('password');
expect(wrapper.prop('errors')).not.toHaveProperty('username');
wrapper.prop('validateValue')('username');
wrapper.prop('validate')('username');
expect(wrapper.prop('errors')).not.toHaveProperty('username');
});

Expand Down
2 changes: 0 additions & 2 deletions test/__snapshots__/Refova.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ exports[`<Refova /> renders given wrapped component 1`] = `
setValues={[Function]}
username=""
validate={[Function]}
validateValue={[Function]}
values={
Object {
"email": "example@email.com",
Expand All @@ -41,7 +40,6 @@ exports[`<Refova /> renders given wrapped component when options omitted 1`] = `
setValue={[Function]}
setValues={[Function]}
validate={[Function]}
validateValue={[Function]}
values={Object {}}
/>
`;

0 comments on commit 8790039

Please sign in to comment.