From d7e60cb6d0b465f0a08d563c3a99f14da7240d61 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 27 Aug 2016 19:29:41 -0700 Subject: [PATCH] Add more object assignments tests. --- test/test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test.js b/test/test.js index b05e46e8b..4e154148f 100644 --- a/test/test.js +++ b/test/test.js @@ -5606,7 +5606,7 @@ QUnit.module('strict mode checks'); - lodashStable.each(['assign', 'assignIn', 'bindAll', 'defaults'], function(methodName) { + lodashStable.each(['assign', 'assignIn', 'bindAll', 'defaults', 'defaultsDeep', 'merge'], function(methodName) { var func = _[methodName], isBindAll = methodName == 'bindAll'; @@ -7203,10 +7203,10 @@ QUnit.module('object assignments'); - lodashStable.each(['assign', 'assignIn', 'defaults', 'merge'], function(methodName) { + lodashStable.each(['assign', 'assignIn', 'defaults', 'defaultsDeep', 'merge'], function(methodName) { var func = _[methodName], isAssign = methodName == 'assign', - isDefaults = methodName == 'defaults'; + isDefaults = methodName == 'defaults' || methodName == 'defaultsDeep'; QUnit.test('`_.' + methodName + '` should coerce primitives to objects', function(assert) { assert.expect(1); @@ -7320,7 +7320,7 @@ }); }); - lodashStable.each(['assign', 'assignIn', 'assignInWith', 'assignWith', 'defaults', 'merge', 'mergeWith'], function(methodName) { + lodashStable.each(['assign', 'assignIn', 'assignInWith', 'assignWith', 'defaults', 'defaultsDeep', 'merge', 'mergeWith'], function(methodName) { var func = _[methodName]; QUnit.test('`_.' + methodName + '` should not assign values that are the same as their destinations', function(assert) {