mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-10 11:50:49 +08:00
Adding test for optional hapi config.validate parameters
This commit is contained in:
1 parent
f3205f05f4
commit
1a364df8db
1 file changed
+13
@@ -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();
|
||||
Reference in new issue
Block a user