(schemaObject)
| 18 | import { getAjvOptions } from 'ozaria/site/common/ozariaUtils' |
| 19 | |
| 20 | function schemaCompileTest (schemaObject) { |
| 21 | it('compiles successfully', () => { |
| 22 | const ajv = new Ajv(getAjvOptions()) |
| 23 | const validate = ajv.compile(schemaObject) |
| 24 | expect(typeof validate).toBe('function') |
| 25 | expect(ajv.errors).toBe(null) |
| 26 | }) |
| 27 | } |
| 28 | |
| 29 | function schemaValidateObjectTest (schemaObject, testObject) { |
| 30 | it('validates a correct object', () => { |
no test coverage detected