mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-18 11:25:43 +08:00
Add test case for chained notation
This commit is contained in:
1 parent
22ade6d066
commit
7661b23edc
1 file changed
+13
@@ -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();
|
||||
Reference in new issue
Block a user