(opts)
| 264 | }) |
| 265 | |
| 266 | function testMissingSchemaError(opts) { |
| 267 | instances.forEach((ajv) => { |
| 268 | try { |
| 269 | ajv.compile({ |
| 270 | $id: opts.baseId, |
| 271 | type: "object", |
| 272 | properties: {a: {$ref: opts.ref}}, |
| 273 | }) |
| 274 | } catch (err) { |
| 275 | const e = err as MissingRefError |
| 276 | e.missingRef.should.equal(opts.expectedMissingRef) |
| 277 | e.missingSchema.should.equal(opts.expectedMissingSchema) |
| 278 | } |
| 279 | }) |
| 280 | } |
| 281 | }) |
| 282 | |
| 283 | describe("inline referenced schemas without refs in them", () => { |
no test coverage detected
searching dependent graphs…