Chakram-Joi
Chakram assertion for checking responses using Joi schema.
Installation
npm install --save-dev chakram-joi
Setup
chakram;
Basic Usage
const schema = joiobject; to;
Custom Options
Joi has several options for validation and it's possible to use them as shown bellow:
to;
Default options:
abortEarly: true # stops validation on the first errorpresence: 'required' # declared items must be foundallowUnknown: true # unknown object keys are ignored
License
MIT