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:
William Liang authored and GitHub committed 2023-11-11 15:19:33 +00:00
1 parent 56ea071421
commit 8af570a9b8
1 file changed
+2 -2
+2 -2
View File
@@ -34,9 +34,9 @@ function addTest(sequences, expectedKeys) {
keys = [];
sequences.forEach((sequence) => {
for (const sequence of sequences) {
fi.write(sequence);
});
}
assert.deepStrictEqual(keys, expectedKeys);
}