UNPKG

async-validate

Version:

Asynchronous validation for node and the browser

14 lines (12 loc) 248 B
var schema= { type: 'object', fields: { mock: function(cb) { cb(new Error('query error')); }, next: function() { throw new Error('rule validation function invoked unexpectedly'); } } } module.exports = schema;