@chainbrains/lds-merkle-proof-2019
Version:
LDS Merkle Proof 2019 signature suite tools
18 lines (12 loc) • 409 B
JavaScript
const { validate } = require('../index')
const validSchema = require('./valid.json')
const invalidSchema = require('./invalid.json')
describe('validate schema', () => {
test('checks correct schema', () => {
expect(validate(validSchema)).toBeTruthy()
});
test('checks incorrect schema', () => {
const valid = validate(invalidSchema)
expect(valid).toBeFalsy()
});
})