From 5fd8939b7d6a27dd16ffbaaf7f17c80e511df526 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 31 Aug 2015 19:40:32 -0700 Subject: [PATCH] Add `Symbol.iterator` guards to tests. --- test/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index 04a9f30b4..86922f7e2 100644 --- a/test/test.js +++ b/test/test.js @@ -16583,7 +16583,7 @@ }); test('should reset the iterator correctly ' + chainType, 4, function() { - if (!isNpm) { + if (!isNpm && Symbol && Symbol.iterator) { var array = [1, 2], wrapped = chain(array); @@ -16600,7 +16600,7 @@ }); test('should work in a lazy sequence' + chainType, 3, function() { - if (!isNpm) { + if (!isNpm && Symbol && Symbol.iterator) { var array = _.range(LARGE_ARRAY_SIZE), predicate = function(value) { values.push(value); return isEven(value); }, values = [], @@ -16653,7 +16653,7 @@ }); test('should reset iterator data on cloned sequences', 3, function() { - if (!isNpm) { + if (!isNpm && Symbol && Symbol.iterator) { var array1 = [2, 4], array2 = [6, 8], wrapped1 = _(array1).map(square);