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 authored and targos committed Nov 14, 2023
1 parent 49cce76 commit e978fd4
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 e978fd4

Please sign in to comment.