From 9992144130e19c7239b125c9f4f2c498b6e9d3b0 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 7 Jun 2016 07:08:14 -0700 Subject: [PATCH] Cleanup clone tests. --- test/test.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/test.js b/test/test.js index d86234f13..7bd1a98c9 100644 --- a/test/test.js +++ b/test/test.js @@ -2745,14 +2745,12 @@ var func = _[methodName], isDeep = methodName == 'cloneDeep'; - lodashStable.forOwn(objects, function(object, key) { - QUnit.test('`_.' + methodName + '` should clone ' + key, function(assert) { + lodashStable.forOwn(objects, function(object, kind) { + QUnit.test('`_.' + methodName + '` should clone ' + kind, function(assert) { assert.expect(2); - var isEqual = (key == 'maps' || key == 'sets') ? _.isEqual : lodashStable.isEqual, - actual = func(object); - - assert.ok(isEqual(actual, object)); + var actual = func(object); + assert.ok(lodashStable.isEqual(actual, object)); if (lodashStable.isObject(object)) { assert.notStrictEqual(actual, object);