Skip to content

Commit ff781d7

Browse files
feat: export ValidateError (#46)
1 parent ebbbe2c commit ff781d7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
const validate = require('./validate');
2+
const validateError = require('./ValidationError');
23

34
module.exports = validate.default;
5+
module.exports.ValidateError = validateError.default;

test/api.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import schemaUtils from '../src/index';
2+
3+
describe('api', () => {
4+
it('should export validate and ValidateError', () => {
5+
expect(typeof schemaUtils).toBe('function');
6+
expect(typeof schemaUtils.ValidateError).toBe('function');
7+
});
8+
});

0 commit comments

Comments
 (0)