14 lines
387 B
JavaScript
14 lines
387 B
JavaScript
'use strict';
|
|
|
|
var Ajv = require('../ajv');
|
|
require('../chai').should();
|
|
|
|
|
|
describe('issue #259, support validating [meta-]schemas against themselves', function() {
|
|
it('should add schema before validation if "id" is the same as "$schema"', function() {
|
|
var ajv = new Ajv;
|
|
var hyperSchema = require('../remotes/hyper-schema.json');
|
|
ajv.addMetaSchema(hyperSchema);
|
|
});
|
|
});
|