Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Update validator test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mosoc committed May 14, 2019
1 parent 76e5cfb commit 39405ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/canner/test/hocs/validation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ describe('withValidation', () => {
onDeploy={jest.fn().mockImplementation((_, fn) => (fn(result)))}
validation={
{
validator: (content, reject) => {
validator: (content) => {
if (!content) {
return reject('should be required');
return 'should be required';
}
}
}
Expand Down

0 comments on commit 39405ba

Please sign in to comment.