UNPKG

cheke

Version:

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

8 lines (6 loc) 269 B
const notEmail = require('../../src/messages/notEmailMessage'); describe('not-an-email-message', () => { test('should return The email must be a valid email address.', () => { expect(notEmail('email')).toBe('The email must be a valid email address.'); }); });