Add conj, disj, and juxt to aryMethodMap.

This commit is contained in:
John-David Dalton
2015-11-05 15:07:53 -06:00
parent 491102f221
commit 60ac7cfe74
2 changed files with 7 additions and 7 deletions

View File

@@ -75,9 +75,9 @@ module.exports = {
/** Used to map ary to method names. */ /** Used to map ary to method names. */
'aryMethodMap': { 'aryMethodMap': {
1: ( 1: (
'attempt,ceil,create,curry,floor,fromPairs,iteratee,invert,memoize,method,' + 'attempt,ceil,conj,create,curry,disj,floor,fromPairs,iteratee,invert,juxt,' +
'methodOf,mixin,rest,reverse,round,runInContext,template,trim,trimLeft,' + 'memoize,method,methodOf,mixin,rest,reverse,round,runInContext,template,trim,' +
'trimRight,uniqueId,words').split(','), 'trimLeft,trimRight,uniqueId,words').split(','),
2: ( 2: (
'ary,assign,at,bind,bindKey,cloneDeepWith,cloneWith,countBy,curryN,debounce,' + 'ary,assign,at,bind,bindKey,cloneDeepWith,cloneWith,countBy,curryN,debounce,' +
'defaults,defaultsDeep,delay,difference,drop,dropRight,dropRightWhile,' + 'defaults,defaultsDeep,delay,difference,drop,dropRight,dropRightWhile,' +

View File

@@ -37,11 +37,11 @@ QUnit.module('method aliases');
var actual = _.transform(mapping.aliasMap, function(result, aliases, methodName) { var actual = _.transform(mapping.aliasMap, function(result, aliases, methodName) {
var func = fp[methodName]; var func = fp[methodName];
_.each(aliases, function(alias) { _.each(aliases, function(alias) {
result.push(fp[alias] === func); result.push([alias, fp[alias] === func]);
}); });
}, []); }, []);
assert.ok(_.every(actual)); assert.deepEqual(_.reject(actual, 1), []);
}); });
}()); }());
@@ -54,8 +54,8 @@ QUnit.module('method ary caps');
assert.expect(1); assert.expect(1);
var funcMethods = [ var funcMethods = [
'curry', 'iteratee', 'memoize', 'method', 'methodOf', 'conj', 'curry', 'disj', 'iteratee', 'juxt', 'memoize',
'restParam', 'runInContext' 'method', 'methodOf', 'restParam', 'runInContext'
]; ];
var exceptions = funcMethods.concat('mixin', 'template'), var exceptions = funcMethods.concat('mixin', 'template'),