From 08dd30c5bf5d02a12afc1b07af106a228123c3b3 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 26 Oct 2014 21:38:53 -0700 Subject: [PATCH] Make lazy `_.drop` test more complex. --- test/test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test.js b/test/test.js index ecacc8241..ed6f2555a 100644 --- a/test/test.js +++ b/test/test.js @@ -3172,14 +3172,14 @@ test('should work in a lazy chain sequence', 2, function() { if (!isNpm) { - var array = [1, 2, 3, 4], + var array = [1, 2, 3, 4, 5, 6, 7, 8], predicate = function(value) { return value > 1; }, - actual = _(array).filter(predicate).drop(2).value(); + actual = _(array).filter(predicate).drop(2).drop(1).value(); - deepEqual(actual, [4]); + deepEqual(actual, [5, 6, 7, 8]); - actual = _(array).filter(predicate).drop().dropRight().value(); - deepEqual(actual, [3]); + actual = _(array).filter(predicate).drop(2).dropRight(1).drop(1).dropRight(2).value(); + deepEqual(actual, [5]); } else { skipTest(2);