UNPKG

cheke

Version:

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

8 lines (6 loc) 255 B
const notDate = require('../../src/messages/notDateMessage'); describe('not-a-date-message', () => { test('should return The birtDate is not a valid date.', () => { expect(notDate('birthDate')).toBe('The birthDate is not a valid date.'); }); });