Update fp mapping with a test to catch potentially missed wrappers.

This commit is contained in:
John-David Dalton
2016-01-15 22:42:08 -08:00
parent fdea9a447f
commit f6c6de40f1
3 changed files with 57 additions and 27 deletions

View File

@@ -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() {