A chaijs plugin to use Avro schema definitions in tests
This is a very simple plugin to use the Avro schemas within the chaijs testing framework, which allows for easily testing against schemas. Behind the scenes it is based on the Avro implementation from AVSC. Currently only supports loading protocols from Avro IDL files (*.avdl).
Load chai and chai-avro modules
const chai = ;const chaiAvro = ;chai;
Load an Avro protocol from IDL (*.avdl) file (e.g. in before handler in mocha)
Test your objects against the Avro schema, using your favorite style
For real-world examples see docs/example-mochajs.md.
by Rico Pfaus | (c) 2016 | MIT licensed