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

Function test

spec/options/unknownFormats.spec.ts:12–16  ·  view source on GitHub ↗
(ajv)

Source from the content-addressed store, hash-verified

10 test(new _Ajv())
11
12 function test(ajv) {
13 should.throw(() => {
14 ajv.compile({type: "string", format: "unknown"})
15 }, /unknown format/)
16 }
17 })
18
19 it("should fail validation if unknown format is used via $data", () => {

Callers 1

Calls 4

validateFunction · 0.85
throwMethod · 0.80
addFormatMethod · 0.80
compileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…