Fix _.compose unit test.

This commit is contained in:
John-David Dalton
2013-09-18 01:20:08 -07:00
parent 27976cbe1a
commit 403ea0a0e1

View File

@@ -4647,16 +4647,11 @@
func = _[methodName];
_.forEach(falsey, function(value, index) {
var pass = false;
var pass = !index && methodName == 'compose';
try {
if (index) {
func(value);
} else {
func();
pass = methodName == 'compose';
}
index ? func(value) : func();
} catch(e) {
pass = true;
pass = !pass;
}
actual.push(pass);
});