From 0efb4285c1f113cf646d6f0a6b1840a2c9a54716 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 23 May 2013 20:23:48 -0700 Subject: [PATCH] Make `capitalize` in test/test-build.js consistent with other areas. Former-commit-id: 2a4b6a2f394e474af2c3ca9376ec0ac2580e9bb9 --- test/test-build.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test-build.js b/test/test-build.js index fe9467023..c1820730f 100644 --- a/test/test-build.js +++ b/test/test-build.js @@ -334,7 +334,7 @@ * @returns {String} Returns the capitalized string. */ function capitalize(string) { - return string[0].toUpperCase() + string.toLowerCase().slice(1); + return string[0].toUpperCase() + string.slice(1); } /** @@ -1565,7 +1565,9 @@ } } if (/\bcategory=/.test(command)) { - methodNames = (methodNames || []).concat(command.match(/\bcategory=(\S*)/)[1].split(/, */).map(capitalize)); + methodNames = (methodNames || []).concat(command.match(/\bcategory=(\S*)/)[1].split(/, */).map(function(category) { + return capitalize(category.toLowerCase()); + })); } if (!methodNames) { methodNames = lodashMethods.slice();