From 2b7c295bf16783bf548eae4f36eb94b9753e1b07 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 22 Nov 2014 14:31:52 -0800 Subject: [PATCH] Use `slice()` instead of `map()` in tests. --- test/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index 5401b98e7..abe995e9d 100644 --- a/test/test.js +++ b/test/test.js @@ -1907,10 +1907,10 @@ test('should work when in between lazy operators', 2, function() { if (!isNpm) { - var actual = _(falsey).map().compact().map().value(); + var actual = _(falsey).slice().compact().slice().value(); deepEqual(actual, []); - actual = _(falsey).map().push(true, 1).compact().push('a').map().value(); + actual = _(falsey).slice().push(true, 1).compact().push('a').slice().value(); deepEqual(actual, [true, 1, 'a']); } else { @@ -12705,7 +12705,7 @@ test('should work when in a lazy chain sequence before `first` or `last`', 1, function() { if (!isNpm) { - var wrapper = _([1, 2]).map().xor([2, 3]); + var wrapper = _([1, 2]).slice().xor([2, 3]); var actual = _.map(['first', 'last'], function(methodName) { return wrapper[methodName]();