From 7661b23edcb008f8af987baf4b4635e3ca58929b Mon Sep 17 00:00:00 2001 From: Oskar Karlsson Date: Tue, 28 Jul 2015 09:49:03 +0200 Subject: [PATCH] Add test case for chained notation --- hapi/hapi-tests.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hapi/hapi-tests.ts b/hapi/hapi-tests.ts index ab58fd9385..cfe9aa5eee 100644 --- a/hapi/hapi-tests.ts +++ b/hapi/hapi-tests.ts @@ -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();