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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
WillLiang918 committed Nov 11, 2023
1 parent 56ea071 commit 8af570a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-readline-keys.js
Original file line number Diff line number Diff line change
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 8af570a

Please sign in to comment.