mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Minor test cleanup.
This commit is contained in:
@@ -1011,7 +1011,7 @@
|
|||||||
|
|
||||||
test('`_.' + methodName + '` should work with a `customizer` callback', 1, function() {
|
test('`_.' + methodName + '` should work with a `customizer` callback', 1, function() {
|
||||||
var actual = func({ 'a': 1, 'b': 2 }, { 'a': 3, 'c': 3 }, function(a, b) {
|
var actual = func({ 'a': 1, 'b': 2 }, { 'a': 3, 'c': 3 }, function(a, b) {
|
||||||
return typeof a == 'undefined' ? b : a;
|
return a === undefined ? b : a;
|
||||||
});
|
});
|
||||||
|
|
||||||
deepEqual(actual, { 'a': 1, 'b': 2, 'c': 3 });
|
deepEqual(actual, { 'a': 1, 'b': 2, 'c': 3 });
|
||||||
@@ -9157,7 +9157,7 @@
|
|||||||
deepEqual(actual, array);
|
deepEqual(actual, array);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should handle object arguments with non-numeric length properties', 1, function() {
|
test('should handle object arguments with non-number length properties', 1, function() {
|
||||||
var value = { 'value': 'x' },
|
var value = { 'value': 'x' },
|
||||||
object = { 'length': { 'value': 'x' } };
|
object = { 'length': { 'value': 'x' } };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user