mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Add fp.invokeArgsMap.
This commit is contained in:
@@ -1176,6 +1176,19 @@
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('fp.invokeMap');
|
||||
|
||||
(function() {
|
||||
QUnit.test('should not accept an `args` param', function(assert) {
|
||||
assert.expect(1);
|
||||
|
||||
var actual = fp.invokeMap('toUpperCase')(['a', 'b']);
|
||||
assert.deepEqual(actual, ['A', 'B']);
|
||||
});
|
||||
}());
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('fp.invokeArgs');
|
||||
|
||||
(function() {
|
||||
@@ -1189,6 +1202,19 @@
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('fp.invokeArgsMap');
|
||||
|
||||
(function() {
|
||||
QUnit.test('should accept an `args` param', function(assert) {
|
||||
assert.expect(1);
|
||||
|
||||
var actual = fp.invokeArgsMap('concat')(['a', 'A'])(['b', 'c']);
|
||||
assert.deepEqual(actual, ['abc', 'Abc']);
|
||||
});
|
||||
}());
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('fp.iteratee');
|
||||
|
||||
(function() {
|
||||
|
||||
Reference in New Issue
Block a user