src/validator/errors.js
// used in `Validator`
export const INVALID_NAME =
'The name of a Validator must be a string'
export const INVALID_PARENT =
'The parent of a Validator must be an object with `test` and `report` methods'
export const INVALID_FEEDBACK =
'The feedback message of a Validator must be a string'
// used in `make`
export const INVALID_VALIDATOR =
'The validator to enhance must be a function'
// used in `make` and `use`
export const INVALID_NESTED_VALIDATOR_NAME =
'The name of a nested validator must be a string'
export const INVALID_NESTED_VALIDATOR =
'The nested validator must be a function'