From a30a70964ca4e7b82342d61bccb104dd3ebbc691 Mon Sep 17 00:00:00 2001 From: LeeDr Date: Wed, 27 Jan 2016 09:16:08 -0600 Subject: [PATCH] Improve baseUrl function. --- test/utils/getUrl.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/utils/getUrl.js b/test/utils/getUrl.js index 3a1b172d7fbc..8dd676d98b62 100644 --- a/test/utils/getUrl.js +++ b/test/utils/getUrl.js @@ -34,8 +34,5 @@ getUrl.noAuth = function getUrlNoAuth(config, app) { }; getUrl.baseUrl = function getBaseUrl(config) { - config = _.pick(config, function (val, param) { - return param !== 'auth' & param !== 'pathname' & param !== 'hash'; - }); - return url.format(config); + return url.format(_.pick(config, 'protocol', 'hostname', 'port')); };