From 86890b13c61e69e4b19abd932a38bcb73f08fe88 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 25 Mar 2013 22:06:04 -0700 Subject: [PATCH] Ensure consistent unit test count depending on build. Former-commit-id: 390020635374f6fb1165a6adef0648847ec9cb9e --- test/test.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/test.js b/test/test.js index 0e8b6df26..86988c521 100644 --- a/test/test.js +++ b/test/test.js @@ -2984,10 +2984,11 @@ 'zip' ]; - var funcs = _.without.apply(_, [_.functions(_)].concat([ - '_', - '_each', - '_iteratorTemplate', + var allMethods = _.reject(_.functions(_), function(methodName) { + return /^_/.test(methodName); + }); + + var funcs = _.without.apply(_, [allMethods].concat([ 'after', 'bind', 'bindAll',