Add test case for chained notation

This commit is contained in:
Oskar Karlsson
2015-07-28 09:49:03 +02:00
parent 22ade6d066
commit 7661b23edc

View File

@@ -95,5 +95,18 @@ server.route([{
}
}]);
// Should be able to chain reply options
server.route([{
method: 'GET',
path: '/chained-notation',
handler: function(request: Hapi.Request, reply: Hapi.IReply) {
reply('chained-notation')
.bytes(16)
.code(200)
.type('text/plain')
.header('X-Custom', 'some-value');
}
}]);
// Start the server
server.start();