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

Function testSchema

spec/boolean.spec.ts:434–442  ·  view source on GitHub ↗
(validate, valid)

Source from the content-addressed store, hash-verified

432 })
433
434 function testSchema(validate, valid) {
435 validate(1).should.equal(valid)
436 validate("foo").should.equal(valid)
437 validate({}).should.equal(valid)
438 validate([]).should.equal(valid)
439 validate(true).should.equal(valid)
440 validate(false).should.equal(valid)
441 validate(null).should.equal(valid)
442 }
443})

Callers 1

testFunction · 0.70

Calls 1

validateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…