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

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update validator test
Browse files Browse the repository at this point in the history
Mosoc committed May 14, 2019

Verified

This commit was signed with the committer’s verified signature.
emaydeck-mozilla Eric Maydeck
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
@@ -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';
}
}
}

0 comments on commit 39405ba

Please sign in to comment.