Test order nits.

This commit is contained in:
John-David Dalton
2014-10-24 23:29:43 -07:00
parent 9aade0a2da
commit 20a38d2dbe

View File

@@ -3314,14 +3314,14 @@
deepEqual(actual, [1]);
});
test('should work with an object for `predicate`', 1, function() {
deepEqual(_.dropRightWhile(objects, { 'b': 2 }), objects.slice(0, 2));
});
test('should work with a "_.pluck" style `predicate`', 1, function() {
deepEqual(_.dropRightWhile(objects, 'b'), objects.slice(0, 1));
});
test('should work with a "_.where" style `predicate`', 1, function() {
deepEqual(_.dropRightWhile(objects, { 'b': 2 }), objects.slice(0, 2));
});
test('should return a wrapped value when chaining', 2, function() {
if (!isNpm) {
var wrapped = _(array).dropRightWhile(function(num) {
@@ -3376,14 +3376,14 @@
deepEqual(actual, [3]);
});
test('should work with an object for `predicate`', 1, function() {
deepEqual(_.dropWhile(objects, { 'b': 2 }), objects.slice(1));
});
test('should work with a "_.pluck" style `predicate`', 1, function() {
deepEqual(_.dropWhile(objects, 'b'), objects.slice(2));
});
test('should work with a "_.where" style `predicate`', 1, function() {
deepEqual(_.dropWhile(objects, { 'b': 2 }), objects.slice(1));
});
test('should return a wrapped value when chaining', 2, function() {
if (!isNpm) {
var wrapped = _(array).dropWhile(function(num) {
@@ -3641,14 +3641,14 @@
strictEqual(func(objects, function(object) { return object.a === 3; }), expected[1]);
});
test('should work with an object for `predicate`', 1, function() {
strictEqual(func(objects, { 'b': 2 }), expected[2]);
});
test('should work with a "_.pluck" style `predicate`', 1, function() {
strictEqual(func(objects, 'b'), expected[3]);
});
test('should work with a "_.where" style `predicate`', 1, function() {
strictEqual(func(objects, { 'b': 2 }), expected[2]);
});
test('should return `' + expected[1] + '` for empty or falsey collections', 1, function() {
var actual = [],
emptyValues = /Index/.test(methodName) ? _.reject(empties, _.isPlainObject) : empties,