1
0
Fork 0
salty-dog/test/utils/ajv/TestFriendlyErrors.ts

16 lines
361 B
TypeScript
Raw Normal View History

import { expect } from 'chai';
import { friendlyError } from '../../../src/utils/ajv';
describe('friendly errors', () => {
it('should have a message', () => {
const err = friendlyError({
dataPath: 'test-path',
2019-09-11 13:48:14 +00:00
keyword: 'test',
params: { /* ? */ },
2019-09-11 13:48:14 +00:00
schemaPath: 'test-path',
});
expect(err.msg).to.not.equal('');
});
});