diff --git a/test/component.js b/test/component.js index a2a37cb..5cf01bf 100644 --- a/test/component.js +++ b/test/component.js @@ -1,8 +1,17 @@ 'use strict'; const Ajv = require('ajv'); +const meta = require('ajv/lib/refs/json-schema-draft-06.json'); const lib = require('../lib/'); +describe('meta', () => { + it('any', async () => { + const ajv = new Ajv({schemaId: 'auto'}); + const validate = ajv.addMetaSchema(meta).compile({}); + validate(lib.any); + }); +}); + describe('any', () => { const ajv = new Ajv(); const validate = ajv