Simplify shorthand test labels.

This commit is contained in:
John-David Dalton
2016-02-16 08:42:29 -08:00
parent c94b1488e9
commit 17091d3a0e

View File

@@ -3364,7 +3364,7 @@
assert.deepEqual(actual, expected);
});
QUnit.test('should work with a "_.property" style `iteratee`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(1);
var actual = _.countBy(['one', 'two', 'three'], 'length');
@@ -4709,19 +4709,19 @@
assert.deepEqual(args, [4, 3, array]);
});
QUnit.test('should work with a "_.matches" style `predicate`', function(assert) {
QUnit.test('should work with "_.matches" shorthands', function(assert) {
assert.expect(1);
assert.deepEqual(_.dropRightWhile(objects, { 'b': 2 }), objects.slice(0, 2));
});
QUnit.test('should work with a "_.matchesProperty" style `predicate`', function(assert) {
QUnit.test('should work with "_.matchesProperty" shorthands', function(assert) {
assert.expect(1);
assert.deepEqual(_.dropRightWhile(objects, ['b', 2]), objects.slice(0, 2));
});
QUnit.test('should work with a "_.property" style `predicate`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(1);
assert.deepEqual(_.dropRightWhile(objects, 'b'), objects.slice(0, 1));
@@ -4779,19 +4779,19 @@
assert.deepEqual(args, [1, 0, array]);
});
QUnit.test('should work with a "_.matches" style `predicate`', function(assert) {
QUnit.test('should work with "_.matches" shorthands', function(assert) {
assert.expect(1);
assert.deepEqual(_.dropWhile(objects, { 'b': 2 }), objects.slice(1));
});
QUnit.test('should work with a "_.matchesProperty" style `predicate`', function(assert) {
QUnit.test('should work with "_.matchesProperty" shorthands', function(assert) {
assert.expect(1);
assert.deepEqual(_.dropWhile(objects, ['b', 2]), objects.slice(1));
});
QUnit.test('should work with a "_.property" style `predicate`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(1);
assert.deepEqual(_.dropWhile(objects, 'b'), objects.slice(2));
@@ -5067,7 +5067,7 @@
assert.deepEqual(actual, expected);
});
QUnit.test('should work with a "_.property" style `predicate`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(2);
var objects = [{ 'a': 0, 'b': 1 }, { 'a': 1, 'b': 2 }];
@@ -5075,7 +5075,7 @@
assert.strictEqual(_.every(objects, 'b'), true);
});
QUnit.test('should work with a "_.matches" style `predicate`', function(assert) {
QUnit.test('should work with "_.matches" shorthands', function(assert) {
assert.expect(2);
var objects = [{ 'a': 0, 'b': 0 }, { 'a': 0, 'b': 1 }];
@@ -5354,19 +5354,19 @@
assert.strictEqual(func(objects, function(object) { return object.a === 3; }), expected[1]);
});
QUnit.test('should work with a "_.matches" style `predicate`', function(assert) {
QUnit.test('should work with "_.matches" shorthands', function(assert) {
assert.expect(1);
assert.strictEqual(func(objects, { 'b': 2 }), expected[2]);
});
QUnit.test('should work with a "_.matchesProperty" style `predicate`', function(assert) {
QUnit.test('should work with "_.matchesProperty" shorthands', function(assert) {
assert.expect(1);
assert.strictEqual(func(objects, ['b', 2]), expected[2]);
});
QUnit.test('should work with a "_.property" style `predicate`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(1);
assert.strictEqual(func(objects, 'b'), expected[3]);
@@ -5541,7 +5541,7 @@
assert.deepEqual(actual, expected);
});
QUnit.test('should work with a "_.property" style `iteratee`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(1);
var objects = [{ 'a': [1, 2] }, { 'a': [3, 4] }];
@@ -6720,7 +6720,7 @@
assert.deepEqual(actual, expected);
});
QUnit.test('should work with a "_.property" style `iteratee`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(1);
var actual = _.groupBy(['one', 'two', 'three'], 'length');
@@ -11920,7 +11920,7 @@
assert.deepEqual(actual, expected);
});
QUnit.test('should work with a "_.property" style `iteratee`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(1);
var expected = { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } },
@@ -12463,7 +12463,7 @@
assert.deepEqual(_.map(object, String), expected);
});
QUnit.test('should work with a "_.property" style `iteratee`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(1);
var objects = [{ 'a': 'x' }, { 'a': 'y' }];
@@ -12625,7 +12625,7 @@
assert.deepEqual(actual, { '1': 1, '2': 2 });
});
QUnit.test('should work with a "_.property" style `iteratee`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(1);
var actual = _.mapKeys({ 'a': { 'b': 'c' } }, 'b');
@@ -12662,7 +12662,7 @@
assert.deepEqual(actual, { '0': '1', '1': '2' });
});
QUnit.test('should work with a "_.property" style `iteratee`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(1);
var actual = _.mapValues({ 'a': { 'b': 1 } }, 'b');
@@ -14575,7 +14575,7 @@
assert.strictEqual(actual, isMax ? 1 : 3);
});
QUnit.test('should work with a "_.property" style `iteratee`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(2);
var objects = [{ 'a': 2 }, { 'a': 3 }, { 'a': 1 }],
@@ -15304,7 +15304,7 @@
assert.deepEqual(over('a', 'b', 'c'), ['a', 'a']);
});
QUnit.test('should work with a "_.property" style predicate', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(1);
var object = { 'a': 1, 'b': 2 },
@@ -15313,7 +15313,7 @@
assert.deepEqual(over(object), [2, 1]);
});
QUnit.test('should work with a "_.matches" style predicate', function(assert) {
QUnit.test('should work with "_.matches" shorthands', function(assert) {
assert.expect(1);
var object = { 'a': 1, 'b': 2 },
@@ -15374,7 +15374,7 @@
assert.strictEqual(over(false), false);
});
QUnit.test('should work with a "_.property" style predicate', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(2);
var object = { 'a': 1, 'b': 2 },
@@ -15386,7 +15386,7 @@
assert.strictEqual(over(object), true);
});
QUnit.test('should work with a "_.matches" style predicate', function(assert) {
QUnit.test('should work with "_.matches" shorthands', function(assert) {
assert.expect(2);
var object = { 'a': 1, 'b': 2 },
@@ -15476,7 +15476,7 @@
assert.strictEqual(over(false), false);
});
QUnit.test('should work with a "_.property" style predicate', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(2);
var object = { 'a': 1, 'b': 2 },
@@ -15488,7 +15488,7 @@
assert.strictEqual(over(object), false);
});
QUnit.test('should work with a "_.matches" style predicate', function(assert) {
QUnit.test('should work with "_.matches" shorthands', function(assert) {
assert.expect(2);
var object = { 'a': 1, 'b': 2 },
@@ -16136,7 +16136,7 @@
assert.deepEqual(actual, expected);
});
QUnit.test('should work with a "_.property" style `predicate`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(1);
var objects = [{ 'a': 1 }, { 'a': 1 }, { 'b': 2 }],
@@ -17292,13 +17292,13 @@
assert.deepEqual(actual, [0]);
});
QUnit.test('`_.' + methodName + '` should work with a "_.property" style `predicate`', function(assert) {
QUnit.test('`_.' + methodName + '` should work with "_.property" shorthands', function(assert) {
assert.expect(1);
assert.deepEqual(func(objects, 'a'), [objects[isFilter ? 1 : 0]]);
});
QUnit.test('`_.' + methodName + '` should work with a "_.matches" style `predicate`', function(assert) {
QUnit.test('`_.' + methodName + '` should work with "_.matches" shorthands', function(assert) {
assert.expect(1);
assert.deepEqual(func(objects, objects[1]), [objects[isFilter ? 1 : 0]]);
@@ -17432,7 +17432,7 @@
assert.deepEqual(argsList, [[1, 0, clone], [2, 1, clone], [3, 2, clone]]);
});
QUnit.test('should work with a "_.matches" style `predicate`', function(assert) {
QUnit.test('should work with "_.matches" shorthands', function(assert) {
assert.expect(1);
var objects = [{ 'a': 0, 'b': 1 }, { 'a': 1, 'b': 2 }];
@@ -17440,7 +17440,7 @@
assert.deepEqual(objects, [{ 'a': 0, 'b': 1 }]);
});
QUnit.test('should work with a "_.matchesProperty" style `predicate`', function(assert) {
QUnit.test('should work with "_.matchesProperty" shorthands', function(assert) {
assert.expect(1);
var objects = [{ 'a': 0, 'b': 1 }, { 'a': 1, 'b': 2 }];
@@ -17448,7 +17448,7 @@
assert.deepEqual(objects, [{ 'a': 0, 'b': 1 }]);
});
QUnit.test('should work with a "_.property" style `predicate`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(1);
var objects = [{ 'a': 0 }, { 'a': 1 }];
@@ -18761,7 +18761,7 @@
assert.deepEqual(actual, expected);
});
QUnit.test('should work with a "_.property" style `predicate`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(2);
var objects = [{ 'a': 0, 'b': 0 }, { 'a': 0, 'b': 1 }];
@@ -18769,7 +18769,7 @@
assert.strictEqual(_.some(objects, 'b'), true);
});
QUnit.test('should work with a "_.matches" style `predicate`', function(assert) {
QUnit.test('should work with "_.matches" shorthands', function(assert) {
assert.expect(2);
var objects = [{ 'a': 0, 'b': 0 }, { 'a': 1, 'b': 1}];
@@ -18821,7 +18821,7 @@
assert.deepEqual(actual, expected);
});
QUnit.test('should work with a "_.property" style `iteratee`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(1);
var actual = lodashStable.map(_.sortBy(objects.concat(undefined), 'b'), 'b');
@@ -19053,7 +19053,7 @@
assert.deepEqual(args, [40]);
});
QUnit.test('`_.' + methodName + '` should work with a "_.property" style `iteratee`', function(assert) {
QUnit.test('`_.' + methodName + '` should work with "_.property" shorthands', function(assert) {
assert.expect(1);
var objects = [{ 'x': 30 }, { 'x': 50 }],
@@ -19459,7 +19459,7 @@
assert.deepEqual(args, [6]);
});
QUnit.test('should work with a "_.property" style `iteratee`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(2);
var arrays = [[2], [3], [1]];
@@ -19766,19 +19766,19 @@
assert.deepEqual(args, [4, 3, array]);
});
QUnit.test('should work with a "_.matches" style `predicate`', function(assert) {
QUnit.test('should work with "_.matches" shorthands', function(assert) {
assert.expect(1);
assert.deepEqual(_.takeRightWhile(objects, { 'b': 2 }), objects.slice(2));
});
QUnit.test('should work with a "_.matchesProperty" style `predicate`', function(assert) {
QUnit.test('should work with "_.matchesProperty" shorthands', function(assert) {
assert.expect(1);
assert.deepEqual(_.takeRightWhile(objects, ['b', 2]), objects.slice(2));
});
QUnit.test('should work with a "_.property" style `predicate`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(1);
assert.deepEqual(_.takeRightWhile(objects, 'b'), objects.slice(1));
@@ -19881,18 +19881,18 @@
assert.deepEqual(args, [1, 0, array]);
});
QUnit.test('should work with a "_.matches" style `predicate`', function(assert) {
QUnit.test('should work with "_.matches" shorthands', function(assert) {
assert.expect(1);
assert.deepEqual(_.takeWhile(objects, { 'b': 2 }), objects.slice(0, 1));
});
QUnit.test('should work with a "_.matchesProperty" style `predicate`', function(assert) {
QUnit.test('should work with "_.matchesProperty" shorthands', function(assert) {
assert.expect(1);
assert.deepEqual(_.takeWhile(objects, ['b', 2]), objects.slice(0, 1));
});
QUnit.test('should work with a "_.property" style `predicate`', function(assert) {
QUnit.test('should work with "_.property" shorthands', function(assert) {
assert.expect(1);
assert.deepEqual(_.takeWhile(objects, 'b'), objects.slice(0, 2));
@@ -22628,7 +22628,7 @@
assert.deepEqual(args, [objects[0]]);
});
QUnit.test('`_.' + methodName + '` should work with a "_.property" style `iteratee`', function(assert) {
QUnit.test('`_.' + methodName + '` should work with "_.property" shorthands', function(assert) {
assert.expect(2);
var expected = isSorted ? [{ 'a': 1 }, { 'a': 2 }, { 'a': 3 }] : objects.slice(0, 3),