UNPKG

cheke

Version:

Express request validator with object's style response body and inspired by Laravel's Validator

14 lines (11 loc) 325 B
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(); }); });