UNPKG

async-validate

Version:

Asynchronous validation for node and the browser

16 lines (14 loc) 280 B
var expect = require('chai').expect , schema = { type: 'object', fields: { id: { foo: 'bar', test: function(cb) { expect(this.foo).to.eql('bar'); cb(); } } } } module.exports = schema;