From 021df666a37214e5925a440b56ff14897c364d7a Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 27 Aug 2016 19:43:44 -0700 Subject: [PATCH] Cleanup test method flags. --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 4e154148f..42d3299f6 100644 --- a/test/test.js +++ b/test/test.js @@ -7206,7 +7206,7 @@ lodashStable.each(['assign', 'assignIn', 'defaults', 'defaultsDeep', 'merge'], function(methodName) { var func = _[methodName], isAssign = methodName == 'assign', - isDefaults = methodName == 'defaults' || methodName == 'defaultsDeep'; + isDefaults = /^defaults/.test(methodName); QUnit.test('`_.' + methodName + '` should coerce primitives to objects', function(assert) { assert.expect(1); @@ -19706,7 +19706,7 @@ lodashStable.each(['update', 'updateWith', 'set', 'setWith'], function(methodName) { var func = _[methodName], - isUpdate = methodName == 'update' || methodName == 'updateWith'; + isUpdate = /^update/.test(methodName); var oldValue = 1, value = 2,