cover api/common/schema-validator.js with tests

This commit is contained in:
Ivan Tivonenko
2015-07-29 03:22:17 +03:00
parent 528d8bf25d
commit 0b09e53479
4 changed files with 57 additions and 5 deletions

View File

@@ -60,4 +60,8 @@ function schemaValidate(schemaName, object) {
}
SCHEMAS = loadSchemas(path.join(__dirname, './schemas'));
module.exports = schemaValidate;
module.exports = {
schemaValidate: schemaValidate,
loadSchema: loadSchema,
SCHEMAS: SCHEMAS
};