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 Michaël Zasso committed 2023-11-14 09:18:04 +01:00
1 parent 49cce7634b
commit e978fd4375
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);
}