(schemaObject)
| 5 | import { getAjvOptions } from 'ozaria/site/common/ozariaUtils' |
| 6 | |
| 7 | function schemaCompileTest (schemaObject) { |
| 8 | it('compiles successfully', () => { |
| 9 | const ajv = new Ajv(getAjvOptions()) |
| 10 | const validate = ajv.compile(schemaObject) |
| 11 | expect(typeof validate).toBe('function') |
| 12 | expect(ajv.errors).toBe(null) |
| 13 | }) |
| 14 | } |
| 15 | |
| 16 | function schemaValidateObjectTest (schemaObject, testObject) { |
| 17 | it('validates a correct object', () => { |
no test coverage detected