UNPKG

cheke

Version:

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

8 lines (6 loc) 247 B
const notUUID = require('../../src/messages/notUUIDMessage'); describe('not-a-uuid-message', () => { test('should return The userId is not a valid UUID.', () => { expect(notUUID('userId')).toBe('The userId is not a valid UUID.'); }); });