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 notString = require('../../src/messages/notStringMessage'); describe('not-a-string-message', () => { test('should return The username must be a string.', () => { expect(notString('username')).toBe('The username must be a string.'); }); });