Skip to content

Commit

Permalink
Typo. Test data clarification.
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Czajkowski committed Oct 15, 2018
1 parent 3d12bbf commit 74be418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Schema.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -991,8 +991,8 @@ describe('Schema', () => {
expect(results.foo).toEqual([errorMessage]);
});

it('should allow to define a validator errorMessage as a function that will return an error diring validation', () => {
const customErrorMessage = 'error';
it('should allow to define a validator errorMessage as a function that will return an error during validation', () => {
const customErrorMessage = 'foo error';
const customValidator = {
validator: () => false,
errorMessage: () => customErrorMessage,
Expand Down

0 comments on commit 74be418

Please sign in to comment.