MCPcopy Index your code
hub / github.com/codecombat/codecombat / schemaCompileTest

Function schemaCompileTest

test/app/models/Interactive.spec.js:20–27  ·  view source on GitHub ↗
(schemaObject)

Source from the content-addressed store, hash-verified

18import { getAjvOptions } from 'ozaria/site/common/ozariaUtils'
19
20function 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
29function schemaValidateObjectTest (schemaObject, testObject) {
30 it('validates a correct object', () => {

Callers 1

Calls 2

getAjvOptionsFunction · 0.90
compileMethod · 0.45

Tested by

no test coverage detected