Skip to content

Commit

Permalink
Adding test for optional hapi config.validate parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcarr committed Apr 9, 2015
1 parent f3205f0 commit 1a364df
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions hapi/hapi-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit 1a364df

Please sign in to comment.