mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test: replace forEach() with for ... of in test-readline-keys.js
PR-URL: https://github.com/nodejs/node/pull/50604 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
56ea071421
commit
8af570a9b8
1 file changed
+2
-2
@@ -34,9 +34,9 @@ function addTest(sequences, expectedKeys) {
|
||||
|
||||
keys = [];
|
||||
|
||||
sequences.forEach((sequence) => {
|
||||
for (const sequence of sequences) {
|
||||
fi.write(sequence);
|
||||
});
|
||||
}
|
||||
assert.deepStrictEqual(keys, expectedKeys);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user