mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Update fp mapping with a test to catch potentially missed wrappers.
This commit is contained in:
@@ -67,6 +67,22 @@
|
||||
|
||||
console.log('Running lodash/fp tests.');
|
||||
|
||||
QUnit.module('method arity checks');
|
||||
|
||||
(function() {
|
||||
QUnit.test('should wrap methods with an arity > `1`', function(assert) {
|
||||
assert.expect(1);
|
||||
|
||||
var methodNames = _.filter(_.functions(fp), function(methodName) {
|
||||
return fp[methodName].length > 1;
|
||||
});
|
||||
|
||||
assert.deepEqual(methodNames, []);
|
||||
});
|
||||
}());
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('method aliases');
|
||||
|
||||
(function() {
|
||||
|
||||
Reference in New Issue
Block a user