Skip to content

Commit

Permalink
Replace forEach() with for ... of in test-readline-keys.js
Browse files Browse the repository at this point in the history
  • Loading branch information
WillLiang918 committed Nov 7, 2023
1 parent 5e3217c commit 6b0b471
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) {

Check failure on line 37 in test/parallel/test-readline-keys.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

Expected space(s) after "for"
fi.write(sequence);
});
};

Check failure on line 39 in test/parallel/test-readline-keys.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

Unnecessary semicolon
assert.deepStrictEqual(keys, expectedKeys);
}

Expand Down

0 comments on commit 6b0b471

Please sign in to comment.