MCPcopy
hub / github.com/ajv-validator/ajv / testObjSchema

Function testObjSchema

spec/resolve.spec.ts:391–395  ·  view source on GitHub ↗
(validate)

Source from the content-addressed store, hash-verified

389 }
390
391 function testObjSchema(validate) {
392 validate({a: 3}).should.equal(true)
393 validate({a: 1}).should.equal(false)
394 validate({a: 5}).should.equal(false)
395 }
396
397 function testListSchema(validate) {
398 validate([{a: 3}]).should.equal(true)

Callers 1

testSchemasFunction · 0.85

Calls 1

validateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…