Skip to content

Commit

Permalink
test: replace forEach() with for ... of in test-readline-keys.js
Browse files Browse the repository at this point in the history
PR-URL: #50604
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
WillLiang918 authored and UlisesGascon committed Dec 11, 2023
1 parent 9db6227 commit 9397b2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-readline-keys.js
Expand Up @@ -34,9 +34,9 @@ function addTest(sequences, expectedKeys) {

keys = [];

sequences.forEach((sequence) => {
for (const sequence of sequences) {
fi.write(sequence);
});
}
assert.deepStrictEqual(keys, expectedKeys);
}

Expand Down

0 comments on commit 9397b2d

Please sign in to comment.