UNPKG

cheke

Version:

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

8 lines (6 loc) 238 B
const notAllowed = require('../../src/messages/notAllowedMessage'); describe('not-allowed-message', () => { test('should return `users is not allowed.`', () => { expect(notAllowed('users')).toBe('users is not allowed.'); }); });