diff --git a/__tests__/__runtime__/filter.js b/__tests__/__runtime__/filter.js index 47c7fe87..0f4791a5 100644 --- a/__tests__/__runtime__/filter.js +++ b/__tests__/__runtime__/filter.js @@ -19,7 +19,7 @@ const isEven = value => value % 2 === 0; const BAD_ARRAY_RESULT = [...ARRAY]; const ARRAY_RESULT = ARRAY.filter(isEven); -const BAD_DECREMENTING_ARRAY_RESULT = [...ARRAY].reverse(); +const BAD_DECREMENTING_ARRAY_RESULT = [...BAD_ARRAY_RESULT].reverse(); const DECREMENTING_ARRAY_RESULT = [...ARRAY_RESULT].reverse(); const BAD_OBJECT_RESULT = Object.assign({}, OBJECT); diff --git a/__tests__/__runtime__/map.js b/__tests__/__runtime__/map.js index 31561f62..206d54ff 100644 --- a/__tests__/__runtime__/map.js +++ b/__tests__/__runtime__/map.js @@ -19,7 +19,7 @@ const isEven = value => value % 2 === 0; const BAD_ARRAY_RESULT = [...ARRAY]; const ARRAY_RESULT = ARRAY.map(isEven); -const BAD_DECREMENTING_ARRAY_RESULT = [...ARRAY].reverse(); +const BAD_DECREMENTING_ARRAY_RESULT = [...BAD_ARRAY_RESULT].reverse(); const DECREMENTING_ARRAY_RESULT = [...ARRAY_RESULT].reverse(); const BAD_OBJECT_RESULT = Object.assign({}, OBJECT); diff --git a/__tests__/__runtime__/reduce-no-initialValue.js b/__tests__/__runtime__/reduce-no-initialValue.js index b1f7bfa4..71e94446 100644 --- a/__tests__/__runtime__/reduce-no-initialValue.js +++ b/__tests__/__runtime__/reduce-no-initialValue.js @@ -18,7 +18,7 @@ const isEven = (total, value) => { const BAD_ARRAY_RESULT = [...ARRAY]; const ARRAY_RESULT = ARRAY.reduce(isEven); -const BAD_DECREMENTING_ARRAY_RESULT = [...ARRAY].reverse(); +const BAD_DECREMENTING_ARRAY_RESULT = [...BAD_ARRAY_RESULT].reverse(); const DECREMENTING_ARRAY_RESULT = ARRAY.reduceRight(isEven); const BAD_OBJECT_RESULT = Object.assign({}, OBJECT); diff --git a/__tests__/__runtime__/reduce.js b/__tests__/__runtime__/reduce.js index 725dc76d..4020a89d 100644 --- a/__tests__/__runtime__/reduce.js +++ b/__tests__/__runtime__/reduce.js @@ -25,7 +25,7 @@ const isEven = (total, value) => { const BAD_ARRAY_RESULT = [...ARRAY]; const ARRAY_RESULT = ARRAY.reduce(isEven, 10); -const BAD_DECREMENTING_ARRAY_RESULT = [...ARRAY].reverse(); +const BAD_DECREMENTING_ARRAY_RESULT = [...BAD_ARRAY_RESULT].reverse(); const DECREMENTING_ARRAY_RESULT = ARRAY.reduceRight(isEven, 10); const BAD_OBJECT_RESULT = Object.assign({}, OBJECT);