mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Add another test to help catch incorrect fp mapping.
This commit is contained in:
@@ -88,6 +88,23 @@
|
||||
|
||||
assert.deepEqual(methodNames, []);
|
||||
});
|
||||
|
||||
QUnit.test('should have >= arity of `aryMethod` designation', function(assert) {
|
||||
assert.expect(4);
|
||||
|
||||
_.times(4, function(index) {
|
||||
var aryCap = index + 1;
|
||||
|
||||
var methodNames = _.filter(mapping.aryMethod[aryCap], function(methodName) {
|
||||
var key = _.result(mapping.key, methodName, methodName),
|
||||
arity = _[key].length;
|
||||
|
||||
return arity != 0 && arity < aryCap;
|
||||
});
|
||||
|
||||
assert.deepEqual(methodNames, [], '`aryMethod[' + aryCap + ']`');
|
||||
});
|
||||
});
|
||||
}());
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user