UNPKG

cheke

Version:

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

8 lines (6 loc) 240 B
const notObject = require('../../src/messages/notObjectMessage'); describe('not-an-object-message', () => { test('should return `user must be an object.`', () => { expect(notObject('user')).toBe('user must be an object.'); }); });