cheke
Version:
Express request validator with object's style response body and inspired by Laravel's Validator
14 lines (11 loc) • 325 B
JavaScript
const { getRules } = require('../../src/helpers');
describe('getRules()', () => {
test('should return an array`', () => {
expect(getRules('required')).toBeDefined();
});
});
describe('getRules()', () => {
test('should return an array`', () => {
expect(getRules({ type: 'required' })).toBeDefined();
});
});