mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
Remove custom rearg for update.
This commit is contained in:
committed by
John-David Dalton
parent
b40b555386
commit
ff7d79d5fc
@@ -697,7 +697,7 @@
|
||||
assert.deepEqual(actual, { 'a': { 'c': 3 } }, 'fp.unset');
|
||||
|
||||
value = _.cloneDeep(deepObject);
|
||||
actual = fp.update(function(x) { return x + 1; })('a.b')(value);
|
||||
actual = fp.update('a.b')(function(x) { return x + 1; })(value);
|
||||
|
||||
assert.deepEqual(value, deepObject, 'fp.update');
|
||||
assert.deepEqual(actual, { 'a': { 'b': 3, 'c': 3 } }, 'fp.update');
|
||||
@@ -773,7 +773,7 @@
|
||||
assert.strictEqual(actual.d, value.d, 'fp.unset');
|
||||
|
||||
value = _.cloneDeep(object);
|
||||
actual = fp.update(function(x) { return { 'c2': 2 }; }, 'a.b', value);
|
||||
actual = fp.update('a.b', function(x) { return { 'c2': 2 }; }, value);
|
||||
assert.strictEqual(actual.d, value.d, 'fp.update');
|
||||
});
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user