From 20a38d2dbec25299cc6efb172eb06ca9202d475a Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 24 Oct 2014 23:29:43 -0700 Subject: [PATCH] Test order nits. --- test/test.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/test/test.js b/test/test.js index 48a0de6fe..e2c57d7ef 100644 --- a/test/test.js +++ b/test/test.js @@ -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,