Skip to content

Commit

Permalink
🔬 test: Increase test coverage.
Browse files Browse the repository at this point in the history
The original code had been automatically replaced by xo.
  • Loading branch information
make-github-pseudonymous-again committed Apr 30, 2021
1 parent bd62149 commit 2bc2ac4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/src/forEach.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ const set = (x) =>
const macro = (t, Pairs, input) => {
const pairs = Pairs.from(input);
const _pairs = [];
for (const pair of pairs) _pairs.push(pair);
// eslint-disable-next-line unicorn/no-array-for-each
pairs.forEach((pair) => {
_pairs.push(pair);
});
const result = sorted(order, _pairs);
const expected = set(map(list, input));
t.deepEqual(expected, result);
Expand Down

0 comments on commit 2bc2ac4

Please sign in to comment.