mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Cleanup test method flags.
This commit is contained in:
@@ -7206,7 +7206,7 @@
|
|||||||
lodashStable.each(['assign', 'assignIn', 'defaults', 'defaultsDeep', 'merge'], function(methodName) {
|
lodashStable.each(['assign', 'assignIn', 'defaults', 'defaultsDeep', 'merge'], function(methodName) {
|
||||||
var func = _[methodName],
|
var func = _[methodName],
|
||||||
isAssign = methodName == 'assign',
|
isAssign = methodName == 'assign',
|
||||||
isDefaults = methodName == 'defaults' || methodName == 'defaultsDeep';
|
isDefaults = /^defaults/.test(methodName);
|
||||||
|
|
||||||
QUnit.test('`_.' + methodName + '` should coerce primitives to objects', function(assert) {
|
QUnit.test('`_.' + methodName + '` should coerce primitives to objects', function(assert) {
|
||||||
assert.expect(1);
|
assert.expect(1);
|
||||||
@@ -19706,7 +19706,7 @@
|
|||||||
|
|
||||||
lodashStable.each(['update', 'updateWith', 'set', 'setWith'], function(methodName) {
|
lodashStable.each(['update', 'updateWith', 'set', 'setWith'], function(methodName) {
|
||||||
var func = _[methodName],
|
var func = _[methodName],
|
||||||
isUpdate = methodName == 'update' || methodName == 'updateWith';
|
isUpdate = /^update/.test(methodName);
|
||||||
|
|
||||||
var oldValue = 1,
|
var oldValue = 1,
|
||||||
value = 2,
|
value = 2,
|
||||||
|
|||||||
Reference in New Issue
Block a user