2015-05-26 04:11:36 +03:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var compileSchema = require('../lib/compile');
|
|
|
|
var mockInstance = { opts: {} };
|
2015-05-31 23:46:25 +03:00
|
|
|
var assert = require('assert');
|
2015-05-26 04:11:36 +03:00
|
|
|
|
|
|
|
describe('Schema compilation', function() {
|
2015-05-31 23:46:25 +03:00
|
|
|
it('works', function() {
|
|
|
|
var validate = compileSchema.call(mockInstance, { type: 'string' });
|
|
|
|
assert.equal(typeof validate, 'function');
|
2015-05-26 04:11:36 +03:00
|
|
|
});
|
|
|
|
});
|