From 1a364df8db0fc63f81dad2edee189a46a07457a1 Mon Sep 17 00:00:00 2001 From: Adam Carr Date: Thu, 9 Apr 2015 12:01:48 -0400 Subject: [PATCH] Adding test for optional hapi config.validate parameters --- hapi/hapi-tests.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hapi/hapi-tests.ts b/hapi/hapi-tests.ts index c0f8d9f6e0..11ad81d2dd 100644 --- a/hapi/hapi-tests.ts +++ b/hapi/hapi-tests.ts @@ -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();