(_Ajv)
| 7 | describe("draft-2019-09", () => it("should validate", () => test(Ajv2019))) |
| 8 | |
| 9 | function test(_Ajv) { |
| 10 | const ajv = new _Ajv() |
| 11 | const validate = ajv.compile({type: "number"}) |
| 12 | assert.strictEqual(validate(1), true) |
| 13 | assert.strictEqual(validate("1"), false) |
| 14 | } |
| 15 | }) |
no test coverage detected
searching dependent graphs…