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

Commit ff1312c

Browse files
committed
Update validator test
1 parent 0d51466 commit ff1312c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/canner/test/hocs/validation.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ describe('withValidation', () => {
147147
onDeploy={jest.fn().mockImplementation((_, fn) => (fn(result)))}
148148
validation={
149149
{
150-
validator: (content, reject) => {
150+
validator: (content) => {
151151
if (!content) {
152-
return reject('should be required');
152+
return 'should be required';
153153
}
154154
}
155155
}

0 commit comments

Comments
 (0)