From 320ef6f933f1cd1a6673a447142237affea4306d Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 26 Sep 2016 21:32:53 -0700 Subject: [PATCH] Cleanup assignment test. --- test/test.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/test/test.js b/test/test.js index c6759e487..ba4a4c136 100644 --- a/test/test.js +++ b/test/test.js @@ -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) {