Cleanup assignment test.

This commit is contained in:
John-David Dalton
2016-09-26 21:32:53 -07:00
parent b678bb4a74
commit 320ef6f933

View File

@@ -7393,18 +7393,7 @@
args || (args = lodashStable.map(slice.call(arguments, 0, 5), lodashStable.cloneDeep));
});
assert.deepEqual(args, expected, 'primitive property values');
args = undefined;
object = { 'a': 1 };
source = { 'b': 2 };
expected = lodashStable.map([undefined, 2, 'b', object, source], lodashStable.cloneDeep);
func(object, source, function() {
args || (args = lodashStable.map(slice.call(arguments, 0, 5), lodashStable.cloneDeep));
});
assert.deepEqual(args, expected, 'missing destination property');
assert.deepEqual(args, expected, 'primitive values');
var argsList = [],
objectValue = [1, 2],
@@ -7421,7 +7410,18 @@
argsList.push(lodashStable.map(slice.call(arguments, 0, 5), lodashStable.cloneDeep));
});
assert.deepEqual(argsList, expected, 'object property values');
assert.deepEqual(argsList, expected, 'object values');
args = undefined;
object = { 'a': 1 };
source = { 'b': 2 };
expected = lodashStable.map([undefined, 2, 'b', object, source], lodashStable.cloneDeep);
func(object, source, function() {
args || (args = lodashStable.map(slice.call(arguments, 0, 5), lodashStable.cloneDeep));
});
assert.deepEqual(args, expected, 'undefined properties');
});
QUnit.test('`_.' + methodName + '` should not treat the second argument as a `customizer` callback', function(assert) {