Adding test for optional hapi config.validate parameters

This commit is contained in:
Adam Carr
2015-04-09 12:01:48 -04:00
parent f3205f05f4
commit 1a364df8db

View File

@@ -82,5 +82,18 @@ server.route([{
}
}]);
// config.validate parameters should be optional
server.route([{
method: 'GET',
path: '/hello2',
handler: function(request: Hapi.Request, reply: Function) {
reply('hello world2');
},
config: {
validate: {
}
}
}]);
// Start the server
server.start();