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

Function testExport

spec/standalone.spec.ts:296–301  ·  view source on GitHub ↗
(validate: AnyValidateFunction<unknown>)

Source from the content-addressed store, hash-verified

294 testExport(m.default)
295
296 function testExport(validate: AnyValidateFunction<unknown>) {
297 assert.strictEqual(validate(1), true)
298 assert.strictEqual(validate(0), true)
299 assert.strictEqual(validate(-1), false)
300 assert.strictEqual(validate("1"), false)
301 }
302 })
303
304 it("should generate module code with a single export - ESM", () => {

Callers 1

standalone.spec.tsFile · 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…