From d6d19ff38eabff74aedfab491411ed165ea5ca9c Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Wed, 29 Apr 2015 12:05:28 +0200 Subject: [PATCH] Fix test --- node_modules/frontdoor/lib/route.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node_modules/frontdoor/lib/route.js b/node_modules/frontdoor/lib/route.js index d8276197..56343a48 100644 --- a/node_modules/frontdoor/lib/route.js +++ b/node_modules/frontdoor/lib/route.js @@ -161,7 +161,8 @@ module.exports = function Route(route, options, handler, types) { * the decoded and validated parameters are stored in `req.params` * otherwhise an error is returned. */ - var decodeParams = this.decodeParams = function(req, res, next) { + this.decodeParams = decodeParams; + function decodeParams(req, res, next) { var urlParams = req.match; if (!urlParams) return;