Add iterateeRearg fp mapping back for mapKeys.

This commit is contained in:
John-David Dalton
2016-02-17 22:11:47 -08:00
parent ab73503859
commit 23768398c5
3 changed files with 45 additions and 5 deletions

View File

@@ -1037,6 +1037,25 @@
/*--------------------------------------------------------------------------*/
QUnit.module('fp.mapKeys');
(function() {
QUnit.test('should only provide `key` to `iteratee`', function(assert) {
assert.expect(1);
var args,
object = { 'a': 1 };
var actual = fp.mapKeys(function() {
args || (args = slice.call(arguments));
}, object);
assert.deepEqual(args, ['a']);
});
}());
/*--------------------------------------------------------------------------*/
QUnit.module('fp.maxBy and fp.minBy');
_.each(['maxBy', 'minBy'], function(methodName) {