Skip to content

Commit

Permalink
align tests with more logical good vs bad usage
Browse files Browse the repository at this point in the history
  • Loading branch information
planttheidea committed Jun 17, 2019
1 parent e1b844a commit ab6b7ab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __tests__/__runtime__/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion __tests__/__runtime__/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion __tests__/__runtime__/reduce-no-initialValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion __tests__/__runtime__/reduce.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ab6b7ab

Please sign in to comment.