Skip to content

Commit

Permalink
feat: export ValidateError (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Aug 7, 2019
1 parent ebbbe2c commit ff781d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
@@ -1,3 +1,5 @@
const validate = require('./validate');
const validateError = require('./ValidationError');

module.exports = validate.default;
module.exports.ValidateError = validateError.default;
8 changes: 8 additions & 0 deletions test/api.test.js
@@ -0,0 +1,8 @@
import schemaUtils from '../src/index';

describe('api', () => {
it('should export validate and ValidateError', () => {
expect(typeof schemaUtils).toBe('function');
expect(typeof schemaUtils.ValidateError).toBe('function');
});
});

0 comments on commit ff781d7

Please sign in to comment.